How to set Column's style just like Header(gray)

Thanks!

1 Reply

AD Administrator Syncfusion Team August 6, 2003 07:21 AM UTC

To get the color of the column header cells, you would use: Color c = grid.Model.BaseStylesMap["Column Header"].StyleInfo.BackColor; How to set it for a column depends upon teh type of grid you are using: //griddataboundgrid with no explicitly added GridBoundColumns grid.Binder.InterbaleColumns["columnname"].StyleInfo.BackColor = c; //gridcontrol grid.ColStyles[2].BackColor = c;

Loader.
Up arrow icon