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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid control Alternate Row color

Thread ID:

Created:

Updated:

Platform:

Replies:

92970 Feb 16,2010 09:35 PM UTC Feb 17,2010 04:26 AM UTC WPF 1
loading
Tags: GridControl
Asman
Asked On February 16, 2010 09:35 PM UTC

How can I set alternate row color on the GridDataControl?

Thanks!

Karthik Vishnu R [Syncfusion]
Replied On 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

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.

Warning Icon 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.Close Icon

;