c# - Changing datagridview cell color dynamically - Stack Overflow I have a dataGridView object that is populated with data. I want to click a button ... This works for me dataGridView1.Rows[rowIndex].Cells[columnIndex].Style.