Home > Software engineering >  Could you tell me how to delete VB DataGrid or VsflexGrid etc form multiple rows selected record!
Could you tell me how to delete VB DataGrid or VsflexGrid etc form multiple rows selected record!

Time:09-28


Could you tell me how to delete VB DataGrid or VsflexGrid etc form multiple rows selected record!
How do you write code to change ~ ~ ~ ~ ~ ~

CodePudding user response:

Dim varBmk As the Variant

For Each varBmk In DataGrid1. SelBookmarks
Adodc1. You. Bookmark=varBmk
Adodc1. You. Delete
Adodc1. Refresh
Next

CodePudding user response:

No way! Or just delete the first line!

CodePudding user response:

After deleting all Refresh again,

CodePudding user response:

Reverse circulation selectedRows, traverse the corresponding index, according to the index delete rows,
  • Related