?
Solved

combobox dropdown

Posted on 2015-01-17
7
Medium Priority
?
167 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
[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
  • 5
  • 2
7 Comments
 
LVL 18

Expert Comment

by:Simon
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:
Simon earned 2000 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
Limited time offer using promo code EXPERTS25

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through August 31, 2017, Experts Exchange members get 25% off the US7220 on the ATEN USA eShop using promo code EXPERTS25.

 

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

Industry Leaders: 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!

Question has a verified solution.

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

In this article I will provide some simple productivity hacks that will help you use Google to specifically show results from any web site (Experts-Exchange.com in my example), with minimal effort in Chrome and Firefox. I've seen a common theme a…
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 tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

771 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