×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

C# (C Sharp) example - How to iterate through the selected values of a ListView object?


C# (C Sharp) - How to iterate through the selected values of a ListView object?

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: C# (C Sharp)

 
<< Go back