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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change alternating rows color

Thread ID:





116839 Jun 16,2014 05:45 PM UTC Jun 30,2014 04:39 AM UTC WinForms 3
Tags: GridControl
I Mesta
Asked On June 16, 2014 05:45 PM UTC

How I can change the back color in the rows?  
I mean exist the posibility of change the color in alternating rows property like in DataGridView AlternatingRowsDefaultCellStyle property
I wanna change the color.

Muthukumar Kalyanasundaram [Syncfusion]
Replied On June 21, 2014 03:53 AM UTC

Hi Mesta,

Thanks for your interest in Syncfusion Products.

If you want to change the background color , you can use BackColor property. You can change the backcolor for alternate rows by QueryCellInfo event. Please refer the below code.

 Code Snippet[C#] :

this.gridControl1.QueryCellInfo += new Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);

void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)


            if (e.RowIndex % 2 == 0 && e.RowIndex!=0)

                e.Style.BackColor = Color.Red;


Please let us know if you have any concern.


Muthukumar K

I Mesta
Replied On June 25, 2014 04:08 PM UTC

Thanks for all =)

Muthukumar Kalyanasundaram [Syncfusion]
Replied On June 30, 2014 04:39 AM UTC

Hi Mesta,

Thank you for the update.
We are glad to hear that your issue has been resolved. Please let us know if you require any further assistance in future.

Muthukumar K


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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