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

Row Formatting

Thread ID:





88619 Aug 3,2009 12:42 PM UTC Aug 6,2009 06:37 AM UTC WinForms 1
Tags: GridControl
Rohit Kumar
Asked On August 3, 2009 12:42 PM UTC

how to format a row value in syncfusion Grid Grouping Contro.
reply urgently

Jisha Joy [Syncfusion]
Replied On August 6, 2009 06:37 AM UTC

Hi Rohit,

In GridGroupingControl we need to handle either QueryCellStyleInfo event or TableControlPrepareViewStyleInfo event for applying row styles. See the code:

//Handler for QueryCellStyleInfo event
void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.RowIndex == 5)
e.Style.BackColor = Color.CornflowerBlue;
e.Style.TextColor = Color.White;
e.Style.Font.Bold = true;
e.Style.Font.Italic = true;

// Handler for TableControlPrepareViewStyleInfo event
void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPrepareViewStyleInfoEventArgs e)
if (e.Inner.RowIndex == 5)
e.Inner.Style.BackColor = Color.CornflowerBlue;
e.Inner.Style.TextColor = Color.White;
e.Inner.Style.Font.Bold = true;
e.Inner.Style.Font.Italic = true;

We hope we have been able help with your technical support inquiries in this Forum. In addition to our Community Forums, we have other customized support avenues like our Direct Trac Developer Support System https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents and we hope you will take advantage of this system as well.

Thank you for your participation in Syncfusion’s Community Forums”.



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