Hello. Tell me how you can make a mass selection using only Shift and Ctrl. At the moment, you can massively select the lines with the mouse pressed by datagridview, shift, ctrl.

  • Well, why is this necessary? - Qwertiy ♦
  • Unfortunately, it’s a long time to explain, but it’s so required. (( - Berianidze Luka
  • So ban or do? - Alexander Petrov
  • Disable mass selection with the mouse. - Berianidze Luka
  • Vanguyu that you crookedly implemented Drag & Drop (instead of dragging, you get a selection) and try to support it with a crutch. Ne? And, by the way, on en.so you asked the question more clearly. - Alexander Petrov

1 answer 1

The DataGridView has a special property, MultiSelect. You do it in False and that's it.

If you want to block interaction with the mouse, then in the CellMouseClick event you can intercept and press and do nothing.

  • Not helped. Vseravno allocated mouse. - Berianidze Luka
  • one
    @ αƒšαƒ£αƒ™αƒαƒ‘αƒ”αƒ αƒ˜αƒαƒœαƒ˜αƒ«αƒ” - ListBox with a given MultiExtended allows MultiExtended to select elements with mouse movement. So decide what you need. - Alexander Petrov
  • I beg your pardon, I was mistaken) - Berianidze Luka