DataGridView, Net 2.0 - deselect

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
 
J

jxlang

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top