Reputation: 169
Im using this code but it return System.Data.DataRowView instead of column value of multiselected row
foreach (var item in myListView.SelectedItems)
{
//do something with the values, maybe add to a list?
}
Upvotes: 1
Views: 209
Reputation: 6203
foreach (var item in myListView.SelectedItems)
{
DataRowView dr = (DataRowView)item ;
var sValue = dr.Row["columnName"] as string;
}
Upvotes: 3