473,395 Members | 1,577 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 RepeatLayout=Flow

Hi,

I have a page (.aspx) with a DataList.
Into it there is a DataGrid... (master/detail).

I wanna my DataList repeat 2 columns in RepeatLayout = Flow format. But when
I put RepeatColumns=2 and RepeatLayout=Flow it doesn't work.

I mean, it displays only in one column.

I think there is something related with my DataGrid, because it's populated
dynamically in ItemDataBound event of DataList...

any ideas?

thanks
Marcos
Nov 18 '05 #1
2 5581
> I have a page (.aspx) with a DataList.
Into it there is a DataGrid... (master/detail).

I wanna my DataList repeat 2 columns in RepeatLayout = Flow format. But when
I put RepeatColumns=2 and RepeatLayout=Flow it doesn't work.

I mean, it displays only in one column.

I think there is something related with my DataGrid, because it's populated
dynamically in ItemDataBound event of DataList...


Do a view/source on your page. You'll see that the RepeatLayout = flow
renders the DataList in <span> tags, NOT in an HTML <table>. Leave
RepeatLayout as the default Table value, and it should work for you...

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Nov 18 '05 #2
So, I have already put RepeatLayout as Table, but it doesn't fit to me
because I wanna each DataGrid below each other in a row, however the Table
Layout creates spaces between them, because it creates rows... Then the
result is a mess...

thanks
Marcos

"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> escreveu na mensagem
news:%V******************@newssvr29.news.prodigy.c om...
I have a page (.aspx) with a DataList.
Into it there is a DataGrid... (master/detail).

I wanna my DataList repeat 2 columns in RepeatLayout = Flow format. But when I put RepeatColumns=2 and RepeatLayout=Flow it doesn't work.

I mean, it displays only in one column.

I think there is something related with my DataGrid, because it's populated dynamically in ItemDataBound event of DataList...


Do a view/source on your page. You'll see that the RepeatLayout = flow
renders the DataList in <span> tags, NOT in an HTML <table>. Leave
RepeatLayout as the default Table value, and it should work for you...

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!

Nov 18 '05 #3

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

Similar topics

0
by: info | last post by:
I have a datalist with ItemTemplate as a part of my control, however every time the ItemTemplate repeats, it inserts a <br>. How do I get it to not insert a <br>? I need it to be a DataList as...
3
by: Patrick Olurotimi Ige | last post by:
Can i have a Button in a Datalist? The button is for posting a form to the the Database FOr example:- <ASP:DataList id="heading0" RepeatLayout="Flow" RepeatDirection="Horizontal" ...
2
by: tshad | last post by:
I have a Datalist that will display 4 columns of data. I am not using a table format just labels to display a radio button and label for the radio button. Is there a way to set a size for the...
2
by: Mirek Endys | last post by:
Hello, Im often use DataList for viewing and editing datas. For better layout controling, I create a table in the template and there I put other controls or binding data into table cells. ...
3
by: GD | last post by:
I'm using a DataList and a Repeater (nested in the DataList) to display a list of "Chapters" and "Documents" within the Chapters. <asp:DataList ID="dlChapter" Runat="server" RepeatColumns="2"...
1
by: David Lozzi | last post by:
Howdy, I have a datalist which is displaying a list of categories and their associated sub categories in secondary datalists. Works great in a single column. Unfortunaly when i switch it to...
0
by: lamarant | last post by:
OK...I have a datalist that, in each row, has control and a label. What I want to happen is for the text in the label to update when its associated control is clicked. Here's what I have so...
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
1
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.