PC Review


Reply
Thread Tools Rate Thread

Datalist question

 
 
Islamegy®
Guest
Posts: n/a
 
      23rd Aug 2006
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>


 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      23rd Aug 2006
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



"Islamegy®" <Islamegy@Private.4me> wrote in message
news:(E-Mail Removed)...
> 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>
>
>



 
Reply With Quote
 
Islamegy®
Guest
Posts: n/a
 
      24th Aug 2006
I used it but when RepeatColumn = 2 the seprator will be Vertical between
cells not horizonal between rows.

"David Wier" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>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
>
>
>
> "Islamegy®" <Islamegy@Private.4me> wrote in message
> news:(E-Mail Removed)...
>> 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>
>>
>>

>
>



 
Reply With Quote
 
andrew
Guest
Posts: n/a
 
      24th Aug 2006
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.

Islamegy® wrote:
> I used it but when RepeatColumn = 2 the seprator will be Vertical between
> cells not horizonal between rows.
>
> "David Wier" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> >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
> >
> >
> >
> > "Islamegy®" <Islamegy@Private.4me> wrote in message
> > news:(E-Mail Removed)...
> >> 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>
> >>
> >>

> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Question about DataList jobo Microsoft ASP .NET 1 27th Oct 2006 12:56 AM
Datalist Question =?Utf-8?B?TWFubnkgQ2hvaGFu?= Microsoft ASP .NET 1 3rd Apr 2005 10:15 PM
DataList Question Patrick Olurotimi Ige Microsoft ASP .NET 1 16th Mar 2005 07:09 AM
Datalist Question =?Utf-8?B?UGF0cmljay5PLklnZQ==?= Microsoft ASP .NET 1 8th Nov 2004 06:49 AM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll Microsoft ASP .NET 8 9th Sep 2004 11:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:52 AM.