How to change color of a column in datagridview?

change color of a column in datagridview?

Follow below solution:

Simply you just set DefaultCellStyle property for the selected columns.

Below the little demo of DefaultCellStyle property:

grid.Columns["NameOfColumn"].DefaultCellStyle.ForeColor = Color.Red;

Setting column colour in DataGridView,datagridview change row color,
datagridview change header color, datagridview change column name,
CSS of Photoshop text effects ,datagridview change column type,
datagridview change column header,datagridview change selection color,datagridview change font color,

About the Author

avatar