![](https://csdnimg.cn/release/download_crawler_static/85823814/bg3.jpg)
3
数据源连接组件
(1)DataSet数据源
DataSet组件是存放在内存中的数据缓存,类似一个微型的数据库引
擎,用来存储从数据库检索到的数据。
(2)BindingSource
BindingSource 组件是数据源(DataSet)和数据绑定控件之间的桥梁
。对控件中的数据交互操作是通过BindingSource 组件与数据源进行
通信。例如:在填充了数据的DataGridView控件上请求按某列数据排
序时,DataGridView控件首先会与BindingSource 组件通信,
BindingSource 组件再与数据源通信。因此,BindingSource 组件的作
用是绑定到控件的DataSource属性上。