C# .NET - Listview items add/remove events

Asked By Rakib Hasan
02-Jun-09 03: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

Re  Re

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
help
Interview Questions for .NET Framework This article is specially for the users those are in development or want to be a .net developer • To test a Web Service you must create a windows application or web application to consume this service? It is True / False? FALSE How many classes can a single.NET DLL contain? Answer1: As many Answer2: One or more What are good ADO.NET object(s) to replace the ADO Recordset object? The differences includes In ADO, the in memory representation of data is the recordset. In ADO.net, it is the dataset A recordset looks like a single table in ADO In contrast, a dataset is a collection of one or more tables in ADO.net ADO is designed primarily for connected access ADO net the disconnected access to the database is used In ADO you communicate with the database
Frequently asked Interview Questions in ADO.Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B B) What is concept of Boxing and Unboxing ? (B) What is the difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What is CODE Access security? (I)What is a satellite assembly? (A) How to prevent my .NET DLL to be decompiled? (I) what is the difference between Convert.toString and .toString () method assembly in GAC how do we make a choice? (A)What is CodeDom? Chapter 2: NET Interoperability (I) How can we use COM Components in .NET? (I) We have developed the COM wrapper do we have to still register the COM
REVIEW: Visual Studio.NET 2003 [BETA 1] Review: Visual Sudio.NET 2003 [Beta 1] By Peter A. Bromberg, Ph.D. Printer - Friendly Version Peter Bromberg Yesterday and proceeded to install the 8 - CD package on one of my test partitions running .NET Server Enterprise. The good news is that if you leave out Crystal Reports, the MSDE Sourcesafe come on the remaining two CD's. Installation - Good News! Installation of Visual Studio.NET 2003 on .NET Server Enterprise went smoothly. Remembering my pain from Beta II and RTM, I turned off the annoying dialog shown in Fig. 1 below: Fig.1 Typical misleading error dialog on .NET Server It turns out that on .NET Server, everything in IIS is locked down by default. This means that even when you enable" it. So the dialog is misleading because it makes you think (incorrectly) that ASP.NET version 1.1 is not installed. It is installed - - it's just not enabled . Some
What is a “CASE” statement in SQL? What does COLLATE Keyword in SQL signify? .NET Integration What are steps to load a .NET code in SQL SERVER 2005? How can we drop a assembly from SQL SERVER? Are in SQL Server? I want to see which files are linked with which assemblies? Does .NET CLR and SQL SERVER run in different process? Does .NET controls SQL SERVER or is it vice-versa? Is SQLCLR configured by default? How to configure CLR for SQL SERVER? Is .NET feature loaded by default in SQL Server? How does SQL Server control .NET run-time? What’s a “SAND BOX” in SQL Server 2005? What is a application domain? How are .NET Appdomain allocated in SQL SERVER 2005? What is Syntax for creating a new assembly in SQL Server 2005? Do Assemblies loaded in database need actual .NET DLL? Does SQL Server handle unmanaged resources? What is Multi-tasking ? What is Multi-threading
during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Unrecognized configuration section Here is the web.confil code: <configSections> <sectionGroup name = "dotnetnuke"> <section name = "data" type = "DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "logging" type = "DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "scheduling" type = "DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "htmlEditor" type = "DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "navigationControl" type = "DotNetNuke Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "searchIndex" type = "DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "searchDataStore" type = "DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "friendlyUrl" type = "DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" / > <section name = "caching