What is the best practice for setting different backcolors on rows

What is the best way to have a 2 row colors one for even rows and one for odd rows, on the databound grid.

1 Reply

AD Administrator Syncfusion Team September 23, 2003 08:30 PM UTC

You could handle the PrepareViewStyleInfo event and set e.Style.BackColor based on whether e.RowIndex is even or odd. Stefan

Loader.
Up arrow icon