|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
AlternatingItemStyle color questionhello,
i have a datagrid, i've set the "header" row to have a white background with <HeaderStyle BackColor="#ffffff"></HeaderStyle> and want the color of the data rows to alternate between a color and white. so i have added <AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle> which works fine. the only problem is that the first row is white and i would like to have that one colored, the 2nd white, the 3rd colored, etc. so how do you make the first row colored? searched AlternatingItemStyle and could not find a reference to how to do this. thanks as always for any help! Hi Simon,
Try ItemStyle-BackColor ="Gainsboro" AlternatingItemStyle-BackColor="White" HTH Show quoteHide quote "simon" <m*@here.com> wrote in message news:k353u1d97rpcr4ra0h9r2t79ums2f3k4je@4ax.com... > hello, > i have a datagrid, i've set the "header" row to have a white > background with <HeaderStyle BackColor="#ffffff"></HeaderStyle> > and want the color of the data rows to alternate between a color and > white. so i have added > <AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle> > which works fine. the only problem is that the first row is white and > i would like to have that one colored, the 2nd white, the 3rd colored, > etc. > > so how do you make the first row colored? searched > AlternatingItemStyle and could not find a reference to how to do this. > > thanks as always for any help! > Checkout this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatalistclassalternatingitemstyletopic.asp Sonu Kapoor [MVP] --- Posted via www.DotNetSlackers.com thank you guys.
Show quoteHide quote >Checkout this article: > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatalistclassalternatingitemstyletopic.asp > >Sonu Kapoor [MVP]
Interview Questions Feb 01 2006
TimeOfDay adds 1/1/0001 to the Time value? Exemple needed to reorganize nodes(treeview) with mouse (change Nodes order) Generating a WSDL for your Web Service utility to count code lines? Need help with OLEDB query expression .NET EventArgs Security/Permission issues with Citrix and VB.Net string to double try parse ---decimals lost XP 64 and VS 2003 |
|||||||||||||||||||||||