SelectionMode in a DataGridView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dom

    SelectionMode in a DataGridView

    I need a DataGridView in which, if the user clicks on a cell, the
    entire row is selected. But if the user clicks on a cell with the
    control-key down, the selected row does not change.

    I thought I should be able to just set SelectionMode to something like
    "NoSelect", then I could capture the MouseDown event and set
    Row.Selected to true when I need to. Apparently, there is no
    "NoSelect" option for SelectionMode.

    Anyone know how to do what I want?

    Dom
Working...