DataGridView, Net 2.0 - deselect

  • Thread starter Thread starter fiversen
  • Start date Start date
F

fiversen

Hello,

I want to deselect a row if the user clicks again on a row.

->CurrentCell = nullptr;
works, if call it from outside the table - from a button callback.

But in table callbacks, like CurrentCellChange or CellEnter,
the programm crash.

Has anybody an idea ?

Thanks
Frank Iversen
 
Have teh user hold down the ctrl button when the reselect a row. This will deselect the row if it was allready selected.
 
Back
Top