将 DataReader 做为数据源绑定到 DataGrid 控件
2005-04-02 05:12
543 查看
显示结果
源代码:
SqlDataReader dr;
void Page_Load(object sender, System.EventArgs e)
CategoryID | CategoryName | Description |
1 | Beverages | Soft drinks, coffees, teas, beers, and ales |
2 | Condiments | Sweet and savory sauces, relishes, spreads, and seasonings |
3 | Confections | Desserts, candies, and sweet breads |
4 | Dairy Products | Cheeses |
5 | Grains/Cereals | Breads, crackers, pasta, and cereal |
6 | Meat/Poultry | Prepared meats |
7 | Produce | Dried fruit and bean curd |
8 | Seafood | Seaweed and fish |
SqlDataReader dr;
void Page_Load(object sender, System.EventArgs e)
相关文章推荐
- 数据绑定技术_单值数据绑定示例;将 DataTable,DataSet,DataView,DataReader 绑定到 DataGrid 控件示例;DataBinder.Eval;数组的值赋给ListBox1;Hashtable 绑定到;RadioButtonList;将XML 文件做为数据源绑定到控件
- 数据绑定技术—将 DataReader 做为数据源绑定到 DataGrid 控件
- ASP.NET基础教程-DataGrid表格控件-绑定数据源
- 数据绑定技术—将 XML 文件做为数据源绑定到控件
- VS2010环境下MFC使用DataGrid绑定数据源以及控件注册问题解决
- 将 XML 文件做为数据源绑定到控件
- 三维软件开发笔记---调错DataGrid控件数据绑定无法显示问题
- ASP.NET 2.0 中的几种数据源和数据绑定控件
- ASP.NET 2.0 的数据源、数据绑定控件概述与区别
- C# Winform datagridview控件绑定数据源后列顺序混乱
- Dev GridControl控件绑定数据源,列不显示
- WPF绑定各种数据源之元素控件属性
- WPF中数据源绑定数据控件的时候对数据源绑定数据做处理或者转换
- Java学习笔记——可视化Swing中JTable控件绑定SQL数据源的两种方法
- 修改Datagrid,在列上绑定其他控件。
- infopath中界面控件和数据源的绑定
- .Net平台Winform两个ComboBox控件绑定同一个数据源
- C#中ComboBox控件绑定数据源
- EasyUI的DataGrid绑定Json数据源
- C#中DataGridView控件绑定控件绑定数据源方式