Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Add/Delete DBGrid ColumnFields

Posted on 1998-07-28
2
Medium Priority
?
163 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 40 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses

824 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