polyform table (grid)

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.
gianlucaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GreymanCommented:
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 :)
0
kretzschmarCommented:
? do you mean a special stringgid ?
? do you have an underlying dataset ?
0
GreymanCommented:
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
0
kretzschmarCommented:
hi again gianluca,

get this freeware-stringgrids

http://www.torry.ru/vcl/grids/limpgrid.zip
http://www.torry.ru/vcl/shared/datagrid.zip

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.

meikl
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.