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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Flat Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

25533 Mar 1,2005 10:20 AM UTC Mar 1,2005 01:09 PM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 1, 2005 10:20 AM UTC

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 10:21 AM UTC

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

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

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

Administrator [Syncfusion]
Replied On March 1, 2005 01:09 PM UTC

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.

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

;