I have just created a datalist with a dataset that is populated. I am having trouble getting the stylesheet parameters recognized.
<asp:DataList ID="DataList1" runat="server" CssClass="DefaultClass">
works but it doesnt give me any flexibility for each row.
If I try the following it does not work:
<asp:DataList ID="DataList1" runat="server" HeaderStyle-CssClass="DefaultHeaderRow" AlternatingItemStyle-CssClass="DefaultAltDetailRow" ItemStyle-CssClass="DefaultDetailRow" SelectedItemStyle-CssClass="DefaultDetailRow" OnSelectedIndexChanged="DataList1_SelectedIndexChanged" >
The properties are available in both Intellisense and on the Properties sheet. I have also found them in several code examples on the web.
I have also tried setting a base stylesheet and overriding each section with another stylesheet -
<asp:DataList ID="DataList1" runat="server" CssClass="DefaultHeaderRowTest" OnSelectedIndexChanged="DataList1_SelectedIndexChanged" > <HeaderStyle CssClass="DefaultHeaderRow" /> <ItemStyle CssClass="DefaultAltDetailRow" /> <AlternatingItemStyle CssClass="DefaultAltDetailRow" /> <HeaderTemplate>
Normally I would just brute force add the parms manually but there are a lot of pages in this app.
Any help would be greatly appreciated by this newbie...
Thanks.
SB
EDIT: Added code tags around code so smilies don't appear


Sign In
Create Account

Guest_Silverback_*
Back to top










