Groups | Blog | Home
all groups > asp.net building controls > august 2006 >

asp.net building controls : Datalist question


David Wier
8/23/2006 10:34:53 AM
I haven't used a DataList in a while, but you might look into the
SeparatorTemplate

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com



[quoted text, click to view]

Islamegy®
8/23/2006 4:44:44 PM
I'm using a datalist with Repeat Column = 2..
Which will be Rendered
<TR>
<TD></TD>
<TD></TD>
</TR>

now i want to add horizontal seprator.. I mean new row with doted line.. so
i try to insert TableRow control between each row, but when i rty to
override AddedControls i found all controls of type DataListItem.

Which method i need to override to accomplish this task??

<TR>
<TD></TD>
</TR>

Islamegy®
8/24/2006 12:00:00 AM
I used it but when RepeatColumn = 2 the seprator will be Vertical between
cells not horizonal between rows.

[quoted text, click to view]

andrew
8/24/2006 9:40:33 AM
you could always watch the mod of the item count on itemcreated and
then insert the code accordingly.

Although it might be easy to derive a new control and overload the
render function. I don't know. just throwing up ideas.

[quoted text, click to view]
AddThis Social Bookmark Button