Solved

Add/Delete DBGrid ColumnFields

Posted on 1998-07-28
2
153 Views
Last Modified: 2010-04-04
With DBGrid
how do I Add and Delete FieldsColumns in Run-time?
0
Comment
Question by:rainbowsoftware
2 Comments
 
LVL 3

Accepted Solution

by:
Matvey earned 20 total points
ID: 1358782
To add use   DBGrid1.Columns.Add

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

--Matvey
0
 

Author Comment

by:rainbowsoftware
ID: 1358783
I have tried Delete and Erase but not Destroy, so thank you for your help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now