-
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
-
Re: bind combobox
'Cause you add just one item with the text "ProjectName" to the combobox.
-
Re: bind combobox
Use the displaymemberpath to project name.
Check this
http://social.msdn.microsoft.com/for...0-9ab62aa96448