shList View is not getting cleared
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hello All, I have a user control. which contains a tree view as well as list view control. One at a time will show. I have problem with ListView. I am adding item in at runtime on OnDraw method. I have also override OnMesureItem. Now i want to clear the the item. But there is some problem with it. When i click on submit button, old items should cleared and new ones should be added. But when i click on submit button. The new items added to the list , they are not getting cleared. I used:- Item.Clear(); Can anybody help me.