AlternatingItemStyle color question

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

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!
 
Hi Simon,

Try
ItemStyle-BackColor ="Gainsboro" AlternatingItemStyle-BackColor="White"

HTH
 

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

Back
Top