ListViewItem mylistviewitem = new ListViewItem();
var lv = (DataRowView)ListViewEmployeeDetails.Items[i];
mylistviewitem = (ListViewItem)(ListViewEmployeeDetails.ItemContainerGenerator.ContainerFromItem(lv));
if (mylistviewitem != null)
{
if (mylistviewitem.IsSelected)
{
Have your code .......
}
}
I hope it will resolve your problem of finding the item selected in listbox thanks...