need urgent help....plz
i m working with silverlight 4 and wcf ria services...
i have used a combobox which is binded with database value say firstname.
myapp.Web.domainservice context = new myapp.Web.domainservice();
LoadOperation<employee_profile> userQueryOperation = context.Load(context.GetEmployee_profileQuery());
comboBox1.ItemsSource = userQueryOperation.Entities;
comboBox1.DisplayMemberPath = "fname";
that is fine but when i prints the value of selected item it gives the int no rather than string value.
string id2 = comboBox1.SelectedItem.ToString();
returns table name with selected value index like this;
employee_profile : 2

New Topic/Question
Reply



MultiQuote






|