We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon