polyform table (grid)

Posted on 1999-12-07
Medium Priority
Last Modified: 2010-04-06
I need a table (maybe a grid) with 5 column in which some column are text and the others are combo-box; I also need to enter new rows like a DBgrid. I think something like the "Object Ispector", 2 colunm with different king of components inside (text, combo-box,ect.ect.); but I also need to insert more rows.
Question by:gianluca
  • 2
  • 2

Expert Comment

ID: 2263969
Hopefully, your picklists are stored in datasets.  (A ClientDataSet is ideal for this sort of thing.)  Assuming that they are, the answer is to:

Double-click the dataset that is being displayed in the DBGrid to get the fields editor.

Right-click it and Add Fields.  Add all of the fields that it suggests.

While more combo-based fields need to be added do begin:

Right-click again and select New Field.
Add a lookup field - it has properties that are very similar to a DBLookupCombo.

Double-click your DBGrid to get the columns editor, and make sure that the column subject to lookup is not there, and that the lookup field is.

end {while};

F9 :)
LVL 27

Expert Comment

ID: 2264310
? do you mean a special stringgid ?
? do you have an underlying dataset ?

Expert Comment

ID: 2264326
Aha, I misread you a bit, and pasted my answer to the guy who wanted drop-down combos on his dbgrid.

You might be better off with a dbControlGrid - that allows you to put most dbcontrols onto it - unfortunately they all have to connect to the same DataSource
LVL 27

Accepted Solution

kretzschmar earned 300 total points
ID: 2264376
hi again gianluca,

get this freeware-stringgrids


where the last is more comfortable and provides also a dataaware-grid.
in both are samples and full source  included, which shows you how to modify the columns, to provide, for example a picklist and some other features.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Suggested Courses
Course of the Month3 days, 13 hours left to enroll

600 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