System.ComponentModel.IBindingList

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

See Also: IBindingList Members

Syntax

public interface IBindingList : IList

Remarks

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

When you call the IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) or IBindingList.RemoveSort methods, you should raise a IBindingList.ListChanged event with the ListChangedType.Reset enumeration.

When you call the IBindingList.AddNew method, you should raise a IBindingList.ListChanged event with the ListChangedType.ItemAdded enumeration carrying the appropriate index. The added row is in a state where pressing the ESC on a System.Windows.Forms.DataGridView control can remove the new row. Raising the IBindingList.ListChanged event with the ListChangedType.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 IEditableObject.CancelEdit method on a new row (if that row implements System.ComponentModel.IEditableObject), you should raise a IBindingList.ListChanged event with the ListChangedType.ItemDeleted enumeration carrying the appropriate index.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0