Listview items add/remove events

Asked By Rakib Hasan
02-Jun-09 03:08 PM
Earn up to 0 extra points for answering this tough question.
Hi,
I need to have events when items are added or removed from a Listview. Since i am using ListviewGroup, i need to add the newly added items to specific group or remove the items from their corresponding group.

Is there any way to do it?

Thanks
-Rakib

  Re

Ravenet Rasaiyah replied to Rakib Hasan
02-Jun-09 10:03 PM
Hi

There is no event to in the .net framework, but you can implement this easily.

To this you can write codes right after an item added or removed. e.g.

this.listView1.Items.Add("aa");
// write code which you want to put in the "items.add" event here.

same way you can do this to remove time also.

thank you
Create New Account