Faster Datawindow Delete Selected Rows Efficiently In PowerBuilder
When You wanted just to remove them from the screen and not from the database. You used deleteRow(long row) function but it was slow in large datasets.
1 2 3 4 5 6 7 8 9 10 |
// move selected rows to Filter Buffer dw_1.Setfilter("NOT isselected()") dw_1.Filter() // move selected rows from Filter to Delete Buffer dw_1.RowsMove(1,dw_1.FilteredCount(), Filter!,dw_1,1,Delete!) // clear filter dw_1.Setfilter("") dw_1.Filter() |
Good Luck!
Subscribe
Login
0 Comments
Oldest