473,466 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Datalist question

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>
Aug 23 '06 #1
3 899
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®" <Is******@Private.4mewrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...
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>


Aug 23 '06 #2
I used it but when RepeatColumn = 2 the seprator will be Vertical between
cells not horizonal between rows.

"David Wier" <da********@noSpamhotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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®" <Is******@Private.4mewrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...
>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>



Aug 24 '06 #3
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" <da********@noSpamhotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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®" <Is******@Private.4mewrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...
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>

Aug 24 '06 #4

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

Similar topics

2
by: Rob Manger | last post by:
Hi All, This may be a stupid question, and may not be the correct solution for my problem, but here goes. I want to include a datalist within a datalist, in order to effectively group items...
0
by: ani | last post by:
I have few questions regarding datalist control. 1) How do I retrieve the values that are present in the datalist control. My aspx page actually reloads to itself, and the datalist control has...
1
by: Glenn Owens | last post by:
Here's the scenario: I have a DataList populated from a datatable sitting inside a fieldset. Each element (row) in the Datalist has the following child controls: asp:checkbox, asp:image,...
4
by: tshad | last post by:
I have a DataList that I have set up to allow editing. The edit button does go to the subroutine defined by OnEditCommand. The problem is that it doesn't change the fields to editing fields. The...
0
by: Patrick Olurotimi Ige | last post by:
I have a Datalist and i want CheckBoxes in it. The Datalist is popluated from the Database. I want to be able to select the checkboxes with the populated Datalist and insert to table. But i want...
4
by: Patrick.O.Ige | last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected after doing a postBack. I have set my CheckBoxlist AutoPostBack="True" Any ideas what 'm doing wrong? It seems not to...
2
by: Hans Merkl | last post by:
Hi, I am trying to use a user control as EditItemTemplate in a DataList. It loads fine but I can't figure out how to bind to the data of the DataList. Here is what I have got so far: ...
1
by: Craig | last post by:
This is killing me, I've been trying to figure this out for 2 days. When I click on the linkbutton, it executes the GetData(int) method to set the DataSource. The FAILURE is when it tries to...
1
by: AJ | last post by:
Hi all, With the following code in mind : <asp:DataList ID="dlOne" DataKeyField="myField1" DataSource="<%# GetDataSource1()" Runat="server"> <ItemTemplate> Output Value Here! <asp:DataList...
3
by: rn5a | last post by:
I want to change the background color of a row in a DataList when the mouse is moved over a row. This is how I tried but it doesn't change the background color of a row in the DataList when the...
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
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
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
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.