How to change the BackColor of a column
9 Dec 2019 / 1 minute to read
The GridControl.ColStyles collection contains GridStyleInfo objects that provide column style settings for the GridControl. Changing the properties on a particular column style will affect all the cells in that row (unless a particular cell has a more specific style setting, like a cell style, applied).
//Sets the BackColor for the third column.
gridControl1.ColStyles[3].BackColor = Color.Red;
'Sets the BackColor for the third column.
GridControl1.ColStyles(3).BackColor = Color.Red
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page