IBindingList 成员
提供在绑定到数据源时支持复杂方案和简单方案所需的功能。
下表列出了由 IBindingList 类型公开的成员。
公共属性
名称 | 说明 | |
---|---|---|
![]() ![]() |
AllowEdit | 获取是否可更新列表中的项。 |
![]() ![]() |
AllowNew | 获取是否可以使用 AddNew 向列表中添加项。 |
![]() ![]() |
AllowRemove | 获取是否可以使用 Remove 或 RemoveAt 从列表中移除项。 |
![]() ![]() |
IsSorted | 获取是否对列表中的项进行排序。 |
![]() ![]() |
SortDirection | 获取排序的方向。 |
![]() ![]() |
SortProperty | 获取正在用于排序的 PropertyDescriptor。 |
![]() ![]() |
SupportsChangeNotification | 获取当列表更改或列表中的项更改时是否引发 ListChanged 事件。 |
![]() ![]() |
SupportsSearching | 获取列表是否支持使用 Find 方法进行搜索。 |
![]() ![]() |
SupportsSorting | 获取列表是否支持排序。 |
页首
公共方法
名称 | 说明 | |
---|---|---|
![]() ![]() |
AddIndex | 将 PropertyDescriptor 添加到用于搜索的索引。 |
![]() ![]() |
AddNew | 将新项添加到列表。 |
![]() ![]() |
ApplySort | 根据 PropertyDescriptor 和 ListSortDirection 对列表进行排序。 |
![]() ![]() |
Find | 返回具有给定 PropertyDescriptor 的行的索引。 |
![]() ![]() |
RemoveIndex | 从用于搜索的索引中移除 PropertyDescriptor。 |
![]() ![]() |
RemoveSort | 使用 ApplySort 移除任何已应用的排序。 |
页首
公共事件
名称 | 说明 | |
---|---|---|
![]() ![]() |
ListChanged | 当列表更改或列表中的项更改时发生。 |
页首