Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataList inside a Grid Layout Panel (<DIV>) item layout problem

Reply
Thread Tools

DataList inside a Grid Layout Panel (<DIV>) item layout problem

 
 
Rick Spiewak
Guest
Posts: n/a
 
      08-24-2003
I'm using a DataList inside a Grid Layout Panel (which ends up being a
<DIV>) so that I can use the overflow:scroll property. This is working fine,
except for one anomaly: If there aren't enough items to cause an overflow,
and scrolling, they get spaced evenly inside the <DIV>. So, one item appears
in the middle of the area, two spread out with space on top, between, and
bottom, etc. Finally, after adding enough to fill the area, the spacing and
positioning is as I would prefer to see it.

Is there a way to change this behavior so that the <DIV> simply fills in
from the top?

(Also - possible warning note: My first attempt at this consisted of cutting
& pasting the DataList into the Grid Layout panel. This resulted in
*trashing* the HTML for my page. I was able to recover, but sure wished I
had picked the point just before I did that to check in the source....)


 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      08-25-2003
You may change the DataList control's RepeatLayout to "Flow". When it is
set to table, the item's layout will be arranged automatically.

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

 
Reply With Quote
 
 
 
 
Rick Spiewak
Guest
Posts: n/a
 
      08-26-2003
And, we have a winner <g>. Yes, this works!, and without making a mess of
the formatting (I already had manually inserted a <BR> where I wanted a line
break, anyway).

Thanks.

"MSFT" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You may change the DataList control's RepeatLayout to "Flow". When it is
> set to table, the item's layout will be arranged automatically.
>
> Luke
>
> "Microsoft Security Announcement: Have you installed the patch for
> Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
> you to review the information at the following link regarding Microsoft
> Security Bulletin MS03-026
> http://www.microsoft.com/security/se...s/ms03-026.asp and/or

to
> visit Windows Update at http://windowsupdate.microsoft.com to install the
> patch. Running the SCAN program from the Windows Update site will help to
> insure you are current with all security patches, not just MS03-026."
>



 
Reply With Quote
 
Rick Spiewak
Guest
Posts: n/a
 
      08-26-2003
This just controls whether the scroll bar(s) always appear (albeit grayed
out) or not. Thanks. See my response to the MSFT comments by Luke.

"Justin Dutoit" <(E-Mail Removed)> wrote in message
news:uf%(E-Mail Removed)...
> I've heard of overflow:auto being used, have you tried that?
>
> J
>
> "Rick Spiewak" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I'm using a DataList inside a Grid Layout Panel (which ends up being a
> > <DIV>) so that I can use the overflow:scroll property. This is working

> fine,
> > except for one anomaly: If there aren't enough items to cause an

overflow,
> > and scrolling, they get spaced evenly inside the <DIV>. So, one item

> appears
> > in the middle of the area, two spread out with space on top, between,

and
> > bottom, etc. Finally, after adding enough to fill the area, the spacing

> and
> > positioning is as I would prefer to see it.
> >
> > Is there a way to change this behavior so that the <DIV> simply fills in
> > from the top?
> >
> > (Also - possible warning note: My first attempt at this consisted of

> cutting
> > & pasting the DataList into the Grid Layout panel. This resulted in
> > *trashing* the HTML for my page. I was able to recover, but sure wished

I
> > had picked the point just before I did that to check in the source....)
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datalist- Panel for each item? Possible? footballhead@gmail.com ASP .Net 1 01-10-2006 02:45 AM
Where is the "Grid Layout Panel" =?Utf-8?B?RWR3YXJk?= ASP .Net 1 11-27-2005 02:03 PM
How to hide/show HTML Grid Layout Panel via code behind jef ASP .Net 1 03-21-2005 01:57 AM
Extend Panel control - and set to grid layout Nick Stansbury ASP .Net Web Controls 0 12-16-2004 03:41 PM
Grid Layout Panel and Panel in the Designer Chris ASP .Net Web Controls 0 08-28-2003 03:28 PM



Advertisments