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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

95258 Jun 29,2010 05:02 AM Jun 29,2010 06:20 AM Windows Forms 1
loading
Tags: GridControl
Anil Teja
Asked On June 29, 2010 05:02 AM

Hi,

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.

Thanks,
Anil Teja

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

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;
}

Regards,
Jisha

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.

;