Fri, 17 May 2024


How to iterate through the selected values of a ListView object?

By: Peter, NetArt Media
Mon, 31 August 2020

ListView.CheckedListViewItemCollection vc=lv.CheckedItems;

string[] strValues=new string[lvFiles.CheckedItems.Count];

for(int i=0;i<vc.Count;i++)
{
strValues[i]=lv.Items[vc[i].Index].SubItems[0].Text;


}


Category: Web Development
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox