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.

Flat Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

25533 Mar 1,2005 05:20 AM Mar 1,2005 08:09 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 1, 2005 05:20 AM

Is is possible to have a completly flat column header. The current GridCellAppearance.Flat is not completly flat as there is a 1 pixel blank line in the upper part

Administrator [Syncfusion]
Replied On March 1, 2005 05:21 AM

Also, try setting the style.CellType = "Static".

Administrator [Syncfusion]
Replied On March 1, 2005 05:44 AM

This time, i have no border in the header cells...

Administrator [Syncfusion]
Replied On March 1, 2005 08:09 AM

Set the borders you want to see in th estyle. GridStyleInfo style = this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo; style.CellType = "Static"; style.CellAppearance = GridCellAppearance.Flat; Color c = SystemColors.ControlDark; style.Borders.Right = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Bottom = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Top = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Left = GridBorder.Empty; style = this.gridDataBoundGrid1.BaseStylesMap["Header"].StyleInfo; style.CellType = "Static"; style.CellAppearance = GridCellAppearance.Flat; style.Borders.Right = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Bottom = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Top = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Left = new GridBorder(GridBorderStyle.Solid, c); style = this.gridDataBoundGrid1.BaseStylesMap["Row Header"].StyleInfo; style.CellType = "Static"; style.CellAppearance = GridCellAppearance.Flat; style.Borders.Right = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Bottom = new GridBorder(GridBorderStyle.Solid, c); style.Borders.Top = GridBorder.Empty; style.Borders.Left = new GridBorder(GridBorderStyle.Solid, c);

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.

;