New to Telerik UI for WinForms? Download free 30-day trial

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:

WinForms RadGridView Alternate Row Color

See Also

In this article