>Look into changing your Datagrid to a Flexgrid - you can do multiselect and more then
You can do the same with a DataGrid as well.
You capture the Shift key in the KeyDown event to add a block of rows to the SelBookmark collection.
To mark multiple records not with-in a block you can use the grid's built-in function (Ctrl key and mouse click), which I believe the Flex Grid doesn't have.
Once rows are added to the SelBookmark collection, you only need to do a loop:
Do While DataGrid1.SelBookmarks.Count <> 0
rs.Bookmark = DataGrid1.SelBookmarks(0)
rs.Delete
DataGrid1.SelBookmarks.Remove 0
Loop
rs.MoveFirst
I only had to mention this here for the DataGrid users, just in case they may believe that it is not possible to block rows in a grid using the Shift key.
The DataGrid offers all the same functionality as the grid in the table view in the database window of MS Access.
The only real dis-advantage, with respect to basic usage, of the DataGrid vs. the FlexGrid is it's lack of being able to format individual cells with-in the same column, or indiviual rows, independently, with respect to color and font attributes. And then the HFlex grid has the Hierarchical capabilities. [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!