Link to home
Start Free TrialLog in
Avatar of slightstk
slightstk

asked on

display member for data-bound combo box

I'm trying to set the display member for a combox to the name of an alias column.  However, whenever I tab out of the "display menber" box the name reverts to none.  It will not allow me to enter in the name of the alias column created in the SQL query.  I'm using VS 2008 is there any work around for this, or am I missing something.
Avatar of mdougan
mdougan
Flag of United States of America image

What do you have set for the DataSource name?  What is the name of the Display Member Column?
Avatar of slightstk
slightstk

ASKER

dataSource name = xyzDataSourceName
display member column = customColumnName
Can you show your whole code?
Is that necessary?
Only if you want people to try to help you.

You don't have to post the entire program, but, any program code related to creating the datasource would help.  

If you are setting these values through the properties window,then, there might not be any code to post.
That's why I asked, because I am trying to adjust the settings in the properties window.  I data bounded a combobox to a TableAdapter. This tableAdapter has the query in question.  In this query is a subquery with an alias.  I'm trying to use this alias to display info in the combo box.
OK, not much I can do for you, sorry.  I bind my controls through datasets I create in code.  Perhaps someone else will be able to comment.  I don't think it is possible to bind a control to a subquery within a query, but then, I've never tried.
ASKER CERTIFIED SOLUTION
Avatar of slightstk
slightstk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial