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