How to set properties for TcxGrid LookupComboBox to show Field1 in one column and Field2 in another column?

I have a grid where the user picks the options for cabinet upgrades and when they choose 'Pull-out Trash Bin' in the 'Name' field, I want the 'OPID' field to show in an 'ID' field that the user does not edit but I need to reference to at a later time that posts to SQL.

I use qryOption linked to dsOption to populate the combo box. I have it working so it shows both fields but when I save the record, it only posts the Name field.
Norm-alNetwork EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Geert GOracle dbaCommented:
The problem is the code ...
To be able to correct it, or give advice, the code with the problem is needed.
Or a sample app, containing the problem
The more detail you give, the better an answer you'll get from any expert

You have TcxGrid in your title and you have "a grid" in your description
Assumption is the "a grid" is a quantumgrid ?
Are you working in bound or unbound mode ?

There is a lot of ways to accomplish displaying a dropdown in "a grid"

I assume you are using a Lookupcombobox as property ?
There is more options for an ExtLookupCombobox with a grid chosen from grid repository for the dropdown grid view

When selecting a "row" from a drop down combo, only the value of the keryfieldnames is returned
Norm-alNetwork EngineerAuthor Commented:
Yes, quantum grid with Lookupcombobox. I want to choose name "maria" and it post Maria to the name field and "291" into the NameID field.
Geert GOracle dbaCommented:
I don't completely follow you

Sample code ?
Screenshot ?

What is it you expect to happen exactly ?

Please give more details, being brief when explaining a problem doesn't help.

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.