How do I change the datagridview selected row background color in C# windows applications?
This is the simple and working version that you can copy and paste:
private void dataGridView1_SelectionChanged(object sender, EventArgs e) { (sender as DataGridView).CurrentRow.DefaultCellStyle.SelectionBackColor = Color.Green; }