Link to home
Create AccountLog in
Avatar of Victor  Charles
Victor CharlesFlag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Victor  Charles

ASKER

Thank You!