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

Changing border color of GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

57446 Mar 5,2007 08:05 AM UTC Mar 5,2007 05:19 PM UTC WinForms 1
loading
Tags: GridControl
Ryan Hardoon
Asked On March 5, 2007 08:05 AM UTC

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.

Administrator [Syncfusion]
Replied On 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

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.

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

;