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.
Unfortunately, activation email could not send to your email. Please try again.

Grid control Alternate Row color

Thread ID:

Created:

Updated:

Platform:

Replies:

92970 Feb 16,2010 04:35 PM Feb 16,2010 11:26 PM WPF 1
loading
Tags: GridControl
Asman
Asked On February 16, 2010 04:35 PM

How can I set alternate row color on the GridDataControl?

Thanks!

Karthik Vishnu R [Syncfusion]
Replied On February 16, 2010 11:26 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;