Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ListChangedEventArgs Class

Provides data for the ListChanged event.

For a list of all members of this type, see ListChangedEventArgs Members.

System.Object
   System.EventArgs
      System.ComponentModel.ListChangedEventArgs

[Visual Basic]
Public Class ListChangedEventArgs
   Inherits EventArgs
[C#]
public class ListChangedEventArgs : EventArgs
[C++]
public __gc class ListChangedEventArgs : public EventArgs
[JScript]
public class ListChangedEventArgs extends EventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

A ListChanged event is raised when the data in an IBindingList changes.

When a ListChanged event is fired, a single index for deletion needs to be specified. You can set the newIndex of ListChangedEventArgs to the index you are deleting. If there is only one index in the IBindingList, oldIndex should be set to -1.

Example

For an example on using this class, see Working with DataView Events.

Requirements

Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System (in System.dll)

See Also

ListChangedEventArgs Members | System.ComponentModel Namespace

Show:
© 2017 Microsoft