//set column style 2
if(e.ColIndex == 2 && e.RowIndex == -1)
{
e.Style.BackColor = Color.LightGoldenrodYellow;
}
Is it not working for you?
Color c = Color.LightGoldenrodYellow;
private void button1_Click(object sender, System.EventArgs e)
{
c = Color.LightBlue;
this.gridControl1.Refresh();
}
private void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if(e.RowIndex == -1 && e.ColIndex == 1)
e.Style.BackColor = c;
}