DataList Fromatting Cell

  • Thread starter Thread starter Paul Say
  • Start date Start date
P

Paul Say

Here is the problem,

I have a datalist that builds a list of links horizontally across the screen
for a menu bar.

i.e

<asp:datalist id="menuTabs" runat="server>
<ItemTemplate>
<asp:Hyperlink id="myLink" runat="server">
</ItemTemplate>
</asp:datalist>

At runtime how can I access the last cell that is created and change its
width, as I want the last cell to padd out all remaining space in the table
that is created by the datalist.

Paul
 
In PreRender event:

myList.Items[myList.Items.Count-1].FindControl("myLink");

Eliyahu
 
Back
Top