DataGridView that always has one row selected

Posted by Dan Neely on Stack Overflow See other posts from Stack Overflow or by Dan Neely
Published on 2010-03-16T12:49:44Z Indexed on 2010/03/16 14:16 UTC
Read the original article Hit count: 187

Filed under:
|
|

I'm using a DGV to show a list of images with text captions as a picklist. Their must always be a one and only one selection made in the list. I can't find a way to prevent the user from clearing the selection with a control-click on the selected row.

Is there a property in the designer I'm missing that could do this?

If I have to override the behavior in the mouse click events are there other ways the user could clear the current selection that need covered as well?

Is there a third approach I could take that's less cumbersome than my second idea?

© Stack Overflow or respective owner

Related posts about c#

Related posts about datagridview