Listbox selecteditem problem wpf
I am binding dataview to listbox. How to get the selected item.
开发者_如何学CGeetha
Thank you for the reply. I got the solution.
Code:
DataRowView dv = lbResult.SelectedItem as DataRowView;
string xx= dv.Row[1].ToString();
Geetha.
By the property YourListBox.SelectedItem.ToString()
精彩评论