How to change the BackColor of a column

10 Jun 20211 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