开发者

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()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜