Solved

combobox dropdown

Posted on 2015-01-17
7
134 Views
Last Modified: 2015-01-19
vs2012 user
I have a combo box bound to data source
Is there a way to see at least 2 fields from the dataset in the dropdown mode before I select the dropdown item I want to commit to the field (left click the mouse)
Right click on the Item will do but I don't see that event
any help would be appreciated.
0
Comment
Question by:MBHEY131
  • 5
  • 2
7 Comments
 
LVL 18

Expert Comment

by:SimonAdept
ID: 40555713
Concatenate the two fields to display them in the dropdown. You can still bind the dropdown to the field you want, but set the column width for that field to zero so that it doesn't display.
0
 

Author Comment

by:MBHEY131
ID: 40555873
do you mean add a NEW FIELD to the Query that fills the COMBOBOX and that NEW FIELD is made up of 2 or more fields of data that I want to show in the drop down?, I think I understand what your saying but I don't know how to accomplish the task, but I think I can figure it out in the SQL code, I am still very green at vs2012 as I am coming off of coding in FoxPro 2.6 of all things, thanx for the info. I will update your question but it may take some time to get this functionality up and working.
Mark
0
 
LVL 18

Accepted Solution

by:
SimonAdept earned 500 total points
ID: 40556053
>do you mean add a NEW FIELD to the Query that fills the COMBOBOX and that NEW FIELD is made up of 2 or more fields of data that I want to show in the drop down?

Yes, that is what I meant. You'd concatenate the fields in your SQL code that provides the rowsource for the combobox.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Closing Comment

by:MBHEY131
ID: 40557254
That did work, took me a little time to get the SQL code right but THANX.
Mark
0
 

Author Comment

by:MBHEY131
ID: 40557268
But this is what I'm working on now, the dropdown gets populated with the correct concatenated data, but after the mouse selected correct code which at that point is "THE CONCATENATED DATA" (which is fine but I then would like the field populated with a different field "AFTER MOUSE SELECTION") and I've tried just about all the events within the COMBOBOX mouse up, down, enter, leave etc. to get the data chopped down to just 1 field and can't seem to present the data correctly, do you have an idea as to how this problem can be accomplished.
Thanx in advance
0
 

Author Comment

by:MBHEY131
ID: 40557273
THE combobox members I'm working with are primarily the "DISPLAY  MEMBER", "VALUE MEMBER" AND "SELECTED VALUE"
0
 

Author Comment

by:MBHEY131
ID: 40557286
Lostfocus and Gotfocus do exactly what I need
Thank You.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now