Add/Delete DBGrid ColumnFields

With DBGrid
how do I Add and Delete FieldsColumns in Run-time?
rainbowsoftwareAsked:
Who is Participating?
 
MatveyCommented:
To add use   DBGrid1.Columns.Add

To remove use   DBGrid1.Columns[i].Destroy;

--Matvey
0
 
rainbowsoftwareAuthor Commented:
I have tried Delete and Erase but not Destroy, so thank you for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.