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.

Row Formatting

Thread ID:

Created:

Updated:

Platform:

Replies:

88619 Aug 3,2009 08:42 AM Aug 6,2009 02:37 AM Windows Forms 1
loading
Tags: GridControl
Rohit Kumar
Asked On August 3, 2009 08:42 AM

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

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

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”.

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.

;