Grid control Alternate Row color

How can I set alternate row color on the GridDataControl?

Thanks!

1 Reply

KV Karthik Vishnu R Syncfusion Team February 17, 2010 04:26 AM UTC

Hi Asman,

Thanks for using Syncfusion products.

You can set “AlternatingRowBackground” property to the color you wish.

Snippet:

XAML:
x:Name="grid"
AutoPopulateColumns="True"
AlternatingRowBackground=""AliceBlue""
ItemsSource="{StaticResource orderSource}">


C#:

this.grid.AlternatingRowBackground = Brushes.AliceBlue;

Let us know if you need more details.

Regards,
Karthik

Loader.
Up arrow icon