Changing border color of GridGroupingControl

Hi
I have managed to find almost every border settings within cells etc HOWEVER for some reason I cant find how to change to color (or other features) of the main border of the grid grouping control (Its black by default) . I am talking about the surrounding border of the grid. I can change the BorderStyle but I want to change to color
THanks.

1 Reply

AD Administrator Syncfusion Team March 5, 2007 05:19 PM UTC

Hi Ryan,

There is no built-in support for this in GridGroupingControl. You could derive the Windows.Panel control and add a grid to it. You could set the Panel''s DockPadding.All = 1 and set the panel''s BackColor to the color you want to see. Also set the BorderStyle on both the grid and panel to none. Below is a code snippet

public class MyGroupingControl : Panel
{
public GridGroupingControl Grid = new GridGroupingControl();
public MyGroupingControl():base()
{
this.DockPadding.All = 1;
this.BackColor = Color.SlateBlue;
this.BorderStyle = BorderStyle.None;
this.Grid.Dock = DockStyle.Fill;
this.Grid.BorderStyle = BorderStyle.None;
this.Controls.Add(this.Grid);
}
}

For more details, see the below link.
http://websamples.syncfusion.com/samples/Grid.Windows/F57446/main.htm

Best Regards,
Haneef

Loader.
Up arrow icon