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. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon