By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,326 Members | 2,726 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,326 IT Pros & Developers. It's quick & easy.

DataList RepeatLayout=Flow

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
> 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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.