logo

Listview items add/remove events (C# .NET)
Rakib Hasan posted at Tuesday, June 02, 2009 3:08 PM

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
Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0
Re
Bill Look provided a rated reply to Rakib Hasan on Tuesday, June 02, 2009 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
Reply    Reply Using Power Editor
My name is Bill Look, and my profession is software developing since 2006 (having more than 4 years experience) and holding MCTS,MCPD certifications and most of developments are based on MS technologies .Specifically ASP.NET ,Sharepoint and Widows Mobiles. I have worked on ERP systems also.
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos










  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010