Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do multi row selection in a GridView in C#

I am new to C# and visual studio, cannot find any examples on Internet about my question. The question is how to enable multi row selection capabiity in an object of type GridView.

It seems like an easy set to true member variable, but I cannot find the answer. Your help would 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;

like image 821
user1298925 Avatar asked Jan 19 '26 23:01

user1298925


1 Answers

DataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
DataGridView1.MultiSelect = true;
like image 79
Sadaf Avatar answered Jan 22 '26 13:01

Sadaf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!