Carmen

Carmen

  • NA
  • 11
  • 0

Highlighting a row in DataGridView

May 27 2009 6:54 PM

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)