This below code doesnt work

foreach(string itemtext in scheduleListView.Items) // change it to subitems or as needed??

The main issue is first of all you have to check if the list is null if it is null then just insert the new item when you try to insert item again it will check for duplication. how would you implement that?

Just help me small bit in looping condition. Thanks Shabbir