Solved

Hiding DBGrid Columns at Runtime

Posted on 1998-10-17
2
518 Views
Last Modified: 2010-04-06
I have a table that is picked and displayed at runtime. Anyone tell me how I go about hiding several of the columns (fields)

Thanks
0
Comment
Question by:DougBennett
2 Comments
 
LVL 5

Accepted Solution

by:
inter earned 20 total points
ID: 1343216
Ok then, you can hide the individual fields in run time by
  MyDBGrid.Fields[0].Visible := false; etc...
regards, igor (note that you should be carefull in doing so, always check for MyDbGrid.FieldCount to not have exception..)
0
 

Author Comment

by:DougBennett
ID: 1343217
Adjusted points to 25
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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