IBindingList 成员

提供在绑定到数据源时支持复杂方案和简单方案所需的功能。

下表列出了由 IBindingList 类型公开的成员。

公共属性

  名称 说明
Public property Supported by the .NET Compact Framework AllowEdit 获取是否可更新列表中的项。
Public property Supported by the .NET Compact Framework AllowNew 获取是否可以使用 AddNew 向列表中添加项。
Public property Supported by the .NET Compact Framework AllowRemove 获取是否可以使用 RemoveRemoveAt 从列表中移除项。
Public property Supported by the .NET Compact Framework IsSorted 获取是否对列表中的项进行排序。
Public property Supported by the .NET Compact Framework SortDirection 获取排序的方向。
Public property Supported by the .NET Compact Framework SortProperty 获取正在用于排序的 PropertyDescriptor
Public property Supported by the .NET Compact Framework SupportsChangeNotification 获取当列表更改或列表中的项更改时是否引发 ListChanged 事件。
Public property Supported by the .NET Compact Framework SupportsSearching 获取列表是否支持使用 Find 方法进行搜索。
Public property Supported by the .NET Compact Framework SupportsSorting 获取列表是否支持排序。

页首

公共方法

  名称 说明
Public method Supported by the .NET Compact Framework AddIndex PropertyDescriptor 添加到用于搜索的索引。
Public method Supported by the .NET Compact Framework AddNew 将新项添加到列表。
Public method Supported by the .NET Compact Framework ApplySort 根据 PropertyDescriptorListSortDirection 对列表进行排序。
Public method Supported by the .NET Compact Framework Find 返回具有给定 PropertyDescriptor 的行的索引。
Public method Supported by the .NET Compact Framework RemoveIndex 从用于搜索的索引中移除 PropertyDescriptor
Public method Supported by the .NET Compact Framework RemoveSort 使用 ApplySort 移除任何已应用的排序。

页首

公共事件

  名称 说明
Public event Supported by the .NET Compact Framework ListChanged 当列表更改或列表中的项更改时发生。

页首

请参见

参考

IBindingList 接口
System.ComponentModel 命名空间