E
Eirik Eldorsen
I'm trying to set alternating bgcolor for a datalist with 2 columns. My
problem is that its the alternating cell that get the bgcolor, not the row.
Is it possible to set alternating color of rows?
Here is my code:
<aspataList id=dlKommuner runat="server" Width="400px"
RepeatColumns="2" CellPadding="3">
<AlternatingItemStyle Width="200px" CssClass="arow">
</AlternatingItemStyle>
<ItemStyle Width="200px">
</ItemStyle>
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container,
"DataItem.Name") %>' ID="Label2"></asp:Label>
</ItemTemplate>
</aspataList>
Eirik Eldorsen
problem is that its the alternating cell that get the bgcolor, not the row.
Is it possible to set alternating color of rows?
Here is my code:
<aspataList id=dlKommuner runat="server" Width="400px"
RepeatColumns="2" CellPadding="3">
<AlternatingItemStyle Width="200px" CssClass="arow">
</AlternatingItemStyle>
<ItemStyle Width="200px">
</ItemStyle>
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container,
"DataItem.Name") %>' ID="Label2"></asp:Label>
</ItemTemplate>
</aspataList>
Eirik Eldorsen