AD
Administrator
Syncfusion Team
March 1, 2005 10:21 AM UTC
Also, try setting the style.CellType = "Static".
AD
Administrator
Syncfusion Team
March 1, 2005 10:44 AM UTC
This time, i have no border in the header cells...
AD
Administrator
Syncfusion Team
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);