I have a dataGridView object that is populated with data. I want to click a button and have it change the color of the background of the cell. This is what I currently have<
Considere use DataBindingComplete event for update the style. The next code change the style of the cell:
private void Grid_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) { this.Grid.Rows[2].Cells[1].Style.BackColor = Color.Green; }