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
[email protected]
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