How to make multiple row selection in GridView in C #

I am new to C # and visual studio, cannot find examples on the Internet on my question. The question is how to enable the ability to select multiple rows in an object of type GridView.

This seems to be a simple set for a true member variable, but I cannot find the answer. Your help will be appreciated.

I found my answer:
Thanks to those who read my question and offered their help. By the way, GridView is a control from DevXpress.

moView.OptionsSelection.MultiSelect = true;

+3
source share
2 answers
DataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
DataGridView1.MultiSelect = true;
+2
source

Set MultiSelect = True, remember that you need Ctrl + Click to select multiple lines

+1
source

All Articles