BindingSource
来源:互联网 发布:node开发restful api 编辑:程序博客网 时间:2024/05/29 02:23
BindingSource组件是一个绑定数据源的组件。该组件简化了将控件绑定到基础数据源的过程,可以对数据源进行导航、排序、帅选和更新。BindingSource组件可以绑定的数据源有多种,例如数据表和类型。它还可以跟Web服务绑定。下面对BindingSource类的主要成员进行说明:
属性:
AllowEdit : 确定是否可以编辑列表中的项
AllowNew : 确定是否可以添加项
AllowRemove : 确定是否可以删除
Count : 获取列表的总数
Current : 获取当前项
DataMember : 数据成员
DataSource : 数据源
Filter : 过滤条件
IsSorted : 确定是否能排序
Item : 获取或指定当前的想
Position : 获取或指定当前项的索引
Sort : 指定排序的方式
方法:
Add :添加一项到列表
AddNew : 新增一项
CancelEdit : 结束当前编辑
Find : 查找数据
Insert : 插入一项
MoveFirst : 移到列表的第一项
MoveLast : 移到列表的最后一项
MoveNext:移到下一项
MovePrevious : 移到前一项
RemoveCurrent : 移除当前项
ResetCurrentItem : 重置当前绑定的项
事件:
AddingNew : 添加新项时引发事件
PositionChanged : 绑定想得索引改变时引发次事件
- BindingSource
- BindingSource
- BindingSource
- BindingSource控件
- BindingSource BindingNavigator
- C# BindingSource
- [c#] BindingSource
- 绑定BindingSource()
- C# BindingSource
- BindingSource组件
- BindingSource的使用范例
- 转载 C# BindingSource
- BindingSource控件的使用
- BindingSource应用两例
- BindingSource控件介绍
- BindingSource控件介绍
- 使用BindingSource连接数据库
- c# BindingSource 类
- SHOW_SPACE
- 自定义Tab选项卡
- 宿主机win7和虚拟机centos5共享文件
- java 基础
- ortp分析之一 例子分析
- BindingSource
- 转:Oracle Outline的使用及注意事项
- CLRS[1]:general concept
- 80*25彩色字符模式显示缓冲区的结构
- 获取系统进程 CreateToolhelp32Snapshot
- POJ1816 记录
- 我与世界拳击联盟主席、台湾奥委会主席吴经国先生
- 判断一个文件是否为二进制文件
- robotframework使用之一 udp测试