Edit this page

Alternating Row Color

RadGridView supports alternating row color mode which allows you to easily distinguish one row from another.

In order to enable the feature, you should set the EnableAlternatingRowColor property to true:

Enable alternating row color

this.radGridView1.EnableAlternatingRowColor = true;

Me.RadGridView1.EnableAlternatingRowColor = True

In order to change the default alternating row color, set the AlternatingRowColor property:

Changing the alternating row color

((GridTableElement)this.radGridView1.TableElement).AlternatingRowColor = Color.Yellow;

CType(Me.RadGridView1.TableElement, GridTableElement).AlternatingRowColor = Color.Yellow

The result is shown on the screenshot below:


See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article