Victor Charles
asked on
Help with deleting all rows in C1TrueDBGrid
Hi,
How do you loop through a grid and delete all its rows, and only leave one row for users to enter data? I tried the code below to first clear all the rows but it doesn't work.
For r = 0 To C1NSN.RowCount - 1
C1NSN(C1NSN.Row, C1NSN.Col) = ""
Next
Thanks,
Victor
How do you loop through a grid and delete all its rows, and only leave one row for users to enter data? I tried the code below to first clear all the rows but it doesn't work.
For r = 0 To C1NSN.RowCount - 1
C1NSN(C1NSN.Row, C1NSN.Col) = ""
Next
Thanks,
Victor
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER