We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

select multiple rows in a datagrid

Using FAQ 5.36 (How can I make my grid never have an active edit cell and always select whole rows) I developed a new datagrid to handle multi-selections. That part works fine. In the datagrid the property "AllowSorting" is set to TRUE and therefore I can't simply iterate through my grid and check the IsSelected. My question now is, how do I know which rows are selected??? Thanks a lot

4 Replies

AD Administrator Syncfusion Team October 21, 2002 03:39 PM

Try this. It will run you through the selected rows in a datagrid: Dim varbook as variant For Each varbook In Myform.Mydatagrid.SelBookmarks Myform.Mydatagrid.Bookmark = varbook Next varbook Should give you all selected rows from the datagrid. If you should know of any code that can make multiple selections in a datagrid using the mouse, I'll be happy to hear from you on nucklebag@yahoo.dk Pete. > Using FAQ 5.36 (How can I make my grid never have an active edit cell and always select whole rows) I developed a new datagrid to handle multi-selections. That part works fine. In the datagrid the property "AllowSorting" is set to TRUE and therefore I can't simply iterate through my grid and check the IsSelected. My question now is, how do I know which rows are selected??? > > Thanks a lot


HB Heike Brackmann October 22, 2002 02:47 AM

Thanks but this doesn't help because I'm using VB.Net and there is no SelBookmarks. Look at FAQ 5.36. There'll you find an example of how to select mutliple rows by mouse.


SH Shaju March 14, 2018 08:28 AM

I'm using VB.Net


AR Arulpriya Ramalingam Syncfusion Team March 15, 2018 07:28 AM

Hi Shaju,  
  
Thanks for contacting us.  
  
We already provided the sample in our online documentation. The samples can be downloaded from the below link. Please make refer the below UG link,  
  
  
Please let us know, if you have any other queries.  
  
Regards,  
Arulpriya  


Loader.
Live Chat Icon For mobile
Up arrow icon