Export (0) Print
Expand All

IBindingList Interface

Provides the features required to support both complex and simple scenarios when binding to a data source.

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

[Visual Basic]
Public Interface IBindingList
   Inherits IList, ICollection, IEnumerable
[C#]
public interface IBindingList : IList, ICollection, IEnumerable
[C++]
public __gc __interface IBindingList : public IList, ICollection,
   IEnumerable
[JScript]
public interface IBindingList implements IList, ICollection,
   IEnumerable

Classes that Implement IBindingList

Class Description
DataView Represents a databindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation.
DataViewManager Contains a default DataViewSettingCollection for each DataTable in a DataSet.

Remarks

This interface is implemented by the DataView class. Implementation of a method should exhibit the same behavior as the implementation of that method in the DataView class.

When you call the ApplySort or RemoveSort methods, you should raise a ListChanged event with the Reset enumeration.

When you call the AddNew method, you should raise a ListChanged event with the ItemAdded enumeration carrying the appropriate index. The added row is in a state where pressing the ESC on a DataGrid control can remove the new row. Raising the ListChanged event with the ItemAdded enumeration a second time on this row indicates that the item is now a row not in the "new" state.

When you remove an item or call the CancelEdit method on a new row (if that row implements IEditableObject), you should raise a ListChanged event with the ItemDeleted enumeration carrying the appropriate index.

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

IBindingList Members | System.ComponentModel Namespace

Show:
© 2014 Microsoft