I want to Get the Database ID of the item selectd in the Combo box in silverlight either by using SelectedValuePath or by any other wa开发者_StackOverflowy. Please suggest.
In XAML you must to write de name your Id in the combobox:
SelectedValuePath="ID"
where "ID" is the name of your field.
To get the selected value in c#:
int id=(int)myComboBox.SelectedValue;
精彩评论