I have a project where I am using a listview to display a data received through XML. One of the columns called "STATUS" display only 2 text data, either "ON" or "OFF". I would like to know how to count how many times the word "ON" it is apearing in that column and same for the word "OFF". I am using this code to count how many lines I have in the listview
Label1.Text = ListView1.Items.Count()
but I couldn't figure out so far how to count of the words "ON" or "OFF" in the column "STATUS" wchich have the index 9.
Any help which will point me to the right direction will be highly apreciated.
Edited 6 Years Ago by ameltei: n/a