DataGridViewButtonCell button color change on click
问题 I have a DataGridViewRow that I add to a DataGridView "table" programatically. I want one of the cells to be a DataGridViewButtonCell so I can click on it. (I realize I can have a handler on the datagridview for on_click but I'd like to keep this way for simplicity of code). I want to be able to set the forecolor/backcolor of a DataGridViewButtonCell. DataGridViewRow dgvRow = new DataGridViewRow(); dgvRow = (DataGridViewRow)dgv.Rows[0].Clone(); dgvRow.Cells[0].Value = filename; dgvRow.Cells[0