foreach(lvt.SubItems in scheduleListView.Items) you need to take the strings in the items and not the subitems.