答案 0 :(得分:0)
来自ListView.SelectedItems Property,
foreach (var item in myListView.SelectedItems)
{
//do something with the values, maybe add to a list?
DataRowView drv = (DataRowView)lstNames.SelectedItem;
String valueOfItem = drv["NameAndScore"].ToString();
}
基本上取代" NameAndScore"按列名称。
参考:Why I get “System.Data.DataRowView” instead of real values in my Listbox?