This is a migrated thread and some comments may be shown as answers.

RadGridView keep the selected row after searching for another row

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Dec 2018, 01:11 PM

This is my code to select multiple rows and it works. But when i use the search bar the selected rows un-select themselves

 //Enabling multiple row selection
dataGridViewCompanies.MultiSelect = true;
dataGridViewCompanies.SelectionMode = GridViewSelectionMode.FullRowSelect;

 

Any tips on how to keep the selected rows after i search so i can select as many as i want! 

 

Thanks

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Dec 2018, 11:27 AM
Hello Mark,

You can use the AutomaticallySelectFirstResult property:
radGridView1.MasterView.TableSearchRow.AutomaticallySelectFirstResult = false;

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or