2
Answers

Highlighting a row in DataGridView

Carmen

Carmen

15y
15.1k
1

I'm trying to make my form look pretty, but the datagridview refuses to play nice.

For the love of god what properties/methods allow me to select and highlight a row.

I'm trying to make it so when my mouse moves over a row it highlights. I'm using:

private void dataGridView1_CellMouseMove(object sender, DataGridViewCellMouseEventArgs e)

and hoping to pass the rowIndex to be selected through e.RowIndex.

 

Thanks

Answers (2)