ItemTemplate/AlternativeItemTemplate & Skin

J

Jeff

Dear reader :)

ASP.NET 2.0

I have a GridView on my webpage. The ItemTemplate and
AlternativeItemTemplate should have different background color.

I've tryed this technique which don't help at all, it only displays
backgorund color for the label control, it doesn't fill the entire
ItemTemplate
<ItemTemplate>
<div style="background-color:#eeEEdd; width:100%; height:100%;">
<asp:Label ID="Fullname" runat="server" Text=""></asp:Label>
</div>
</ItemTemplate>

The GridView have 2 columns: first column is 160px wide and the second fills
up the rest of the column... Width is NOT fixed, the GridView is as wide as
the webpage...

I would like to specify the background color of ItemTemplate &
AlternativeItemTemplate in skin files because the user is able to select
themes he wants, so then it would be great if the background color also
changes depending on theme. So would be great if someone could explain me
how to specify the background color ItemTemplate & AlternativeItemTemplate
in skin files...

Any suggestions?

Jeff
 
J

Jeff

solved, used AlternativeRowItemStyle and RowItemStyle.. maybe it was
without "Item"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top