开发者

Listbox selecteditem problem wpf

开发者 https://www.devze.com 2023-01-07 19:54 出处:网络
I am binding dataview to listbox. How to get the selected item. 开发者_如何学CGeethaThank you for the reply. I got the solution.

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

精彩评论

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