Listview
  
 
How does one calculate all values in a listview using a for loop?
 
 
  
 
int sum = 0;
			 for each (auto item in listVotes->Items) 
			 {
				 for each (auto col in item->SubItems)
				 {
					 sum += Int32::Parse(col->Text);
				 }
			 }
I'm using this but it gives me an error by subitems
 
 
Topic archived. No new replies allowed.