How do I change the datagridview selected row background color?
问题 How do I change the datagridview selected row background color in C# windows applications? 回答1: Come on man... there has to be a simple solution, and finally got one. dataGridView1.DefaultCellStyle.SelectionBackColor = Color.Blue; dataGridView1.DefaultCellStyle.SelectionForeColor = Color.Red; This worked for me, no complex codes, no event handling. I did it before but was not able to recall so thought posting it would help others and me in future :) 回答2: On the DataGridView there is a