Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 How to get all selected rows in a datagrid

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-02-19 : 23:05:38
Hi great guy,
I have a datagrid on my VB.net windows form. I have 2 questions porfavor:)
1/ How do I restict and prevent the user from selecting several rows at the same time in my datagrid. what property should I use.
2/ In case I allow multi-row-selection in my datagrid, how do I get all the selected rows in the datagrid so that I can add all the relevant values to my database.
I only could find the help for getting the current selected row or cell but I can t get all the selected rows at the same time.

Thanks a lot.
   

- Advertisement -