|
-
Feb 4th, 2011, 05:41 AM
#1
Thread Starter
Fanatic Member
bind combobox
My combo box is populated in th ecodebehind using the cboBox.items.add("ProjectName")
In xaml, I have set the selectedvaluepath to the ProjectID
My listbox populates the names of the employees using a datatable which is populated from the database.
Question:
Why does the combo box not show the relevant item (ProjectName) for the name I select in the listbox?
Thanks
-
Feb 8th, 2011, 05:48 AM
#2
Re: bind combobox
'Cause you add just one item with the text "ProjectName" to the combobox.
-
Feb 9th, 2011, 08:02 AM
#3
Re: bind combobox
Use the displaymemberpath to project name.
Check this
http://social.msdn.microsoft.com/for...0-9ab62aa96448
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|