Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将数据视图绑定到列表框。如何获取所选项目。
吉萨
感谢您的答复。我得到了解决方案。
代码:
DataRowView dv = lbResult.SelectedItem as DataRowView; string xx= dv.Row[1].ToString();
吉萨。
由物业YourListBox.SelectedItem.ToString()
YourListBox.SelectedItem.ToString()