473,395 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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....)
Nov 17 '05 #1
5 2611
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."

Nov 17 '05 #2
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" <an**@anon.com> wrote in message
news:uf****************@TK2MSFTNGP12.phx.gbl...
I've heard of overflow:auto being used, have you tried that?

J

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:ut**************@TK2MSFTNGP12.phx.gbl...
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....)


Nov 17 '05 #3
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" <lu******@online.microsoft.com> wrote in message
news:v9**************@cpmsftngxa06.phx.gbl...
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."

Nov 17 '05 #4
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" <an**@anon.com> wrote in message
news:uf****************@TK2MSFTNGP12.phx.gbl...
I've heard of overflow:auto being used, have you tried that?

J

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:ut**************@TK2MSFTNGP12.phx.gbl...
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....)


Nov 17 '05 #5
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" <lu******@online.microsoft.com> wrote in message
news:v9**************@cpmsftngxa06.phx.gbl...
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."

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Daniel Hansen | last post by:
I know this must seem totally basic and stupid, but I cannot find any reference that describes how to control the spacing between <p>...</p> and <div>...</div> blocks. When I implement these on a...
4
by: smiley | last post by:
I hope this is the right forum for this question; i know it crosses over a few topics but here goes. I have a page that uses a server-side include perl script to return a list of name/value pairs...
8
by: slim | last post by:
hi again all, i am still working on the website as mentioned in earlier threads and have hit another snag... http://awash.demon.co.uk/index.php http://awash.demon.co.uk/vd.css the php is...
19
by: CMAR | last post by:
I have the following markup. The problem is that the browser, e.g., IE6, inserts several lines of blank space between the <div> and the following table. Is there a way to minimize that vertical...
4
by: Tim Sheets | last post by:
Hi all, I am having a problem that seems so simple, I am almost embarrassed to ask about it. I am working on a page that has the layout largely css driven. The top of the page has two <img>...
4
by: Alan Silver | last post by:
Hello, I would like to know if it is possible to use a panel, but prevent it from adding a <div> tag to the HTML. The reason I want to do this is that I am using a panel to enable me to...
5
by: chakradhari.ashish | last post by:
Does anybody know how can I load an html page inside a <div</div> where the content gets update on the onclick even of anchor <a href=> </a>? I googled around and followed some links pointing me...
5
nathj
by: nathj | last post by:
Hi All, I'm working on a new site that has a two column layout underneath a title bar. If you check out: http://www.christianleadership.org.uk/scratch/mainpage.php using IE or Opera you will...
8
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.