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

Grouping Grid Borders Color

Thread ID:





94606 May 24,2010 08:13 AM UTC May 25,2010 08:59 AM UTC WinForms 1
Tags: GridControl
Asked On May 24, 2010 08:13 AM UTC

How do i Change the color of the borders
in a gridGrouping Grid?

Jisha Joy [Syncfusion]
Replied On May 25, 2010 08:59 AM UTC

Hi Jony,

In GridGroupingControl control you need to handle QueryCellStyleInfo to apply styles to the cell. Please see the following code that hows how to set borders in cells.

this.gridGroupingControl1.QueryCellStyleInfo += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);

void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
if(e.TableCellIdentity.ColIndex ==3 && e.TableCellIdentity.RowIndex ==4)
e.Style.Borders.All = new GridBorder(GridBorderStyle.Solid, Color.Beige,GridBorderWeight.ExtraThick);



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