?
Solved

Dbgrid with dbcombobox as a column

Posted on 2002-04-05
7
Medium Priority
?
286 Views
Last Modified: 2010-04-04
I am writing an application which uses a dbgrid and
trying to align dbcomboboxs with each row in the grid.

What would be great is if there were a component that would allow me to assign a column as dbcomboboxs and each
cell in that column would allow me to make a selection based upon the info supplied from another column.  

Is there anything like this?  If not does anyone have a suggestion on an easier way to approach this.
0
Comment
Question by:brettawv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 800 total points
ID: 6921245
you can define lookup-fields in your dataset,
where you can define another dataset as lookupsource

the dbgrid will show then for this field
a combobox at editmode

meikl ;-)
0
 
LVL 3

Expert Comment

by:VSF
ID: 6921423
Double click your dataset,
add the fields you want
select the field you want to contain a dbcombobox
and set its lookup properties to the query that will fill the combobox lines!

Hope it helps!
VSF
www.victory.hpg.com.br
0
 

Author Comment

by:brettawv
ID: 6921659
I must not be setting up my lookup properties correctly because I still can't get it to work?  It doesn't show me a combobox.  Any ideas on what I'm missing.
0
Technology Partners: 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!

 

Author Comment

by:brettawv
ID: 6922136
OK, I got it working, but it won't change my selection when I click on a different option.  Is there a setting I'm missing?
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6924991
? what different option?
0
 

Author Comment

by:brettawv
ID: 6938872
Hi kretzschmar,

I was having problems because of the way I was linking tables together.  I abandoned using the combobox inside the grid and I am using a dblistbox to list my options.  Things seem to be working out ok.  I am giving you the points since you were responded first to my question.

Thanks for your help, maybe I can use this somewhere in the future.
0
 

Author Comment

by:brettawv
ID: 6938873
Thanks again.
0

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

800 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