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

Changing color of entire row in Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl

Thread ID:





95258 Jun 29,2010 09:02 AM UTC Jun 29,2010 10:20 AM UTC WinForms 1
Tags: GridControl
Anil Teja
Asked On June 29, 2010 09:02 AM UTC


How can I change background color of an entire row in the GridListControl, instead of changing color for each column.

The dataset which I'm binding to Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl has 45 columns and 10,000 rows to display. So, changing the background for each cell takes more time. So, I'm looking for an option of changing based on selected row.

Please respond ASAP. Thanks in advance.

Anil Teja

Jisha Joy [Syncfusion]
Replied On June 29, 2010 10:20 AM UTC

Hi Anil,

Thank you for using Syncfusion products.

You could use the following code to change the backcolor of the currently selected row.

this.gridGroupingControl1.TableControlPrepareViewStyleInfo += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPrepareViewStyleInfoEventHandler(gridGroupingControl1_TableControlPrepareViewStyleInfo);

void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPrepareViewStyleInfoEventArgs e)
if (e.Inner.RowIndex == this.gridGroupingControl1.TableControl.CurrentCell.RowIndex)
e.Inner.Style.BackColor = Color.BlanchedAlmond;



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

This page will automatically be redirected to the 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