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

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