资 源 简 介
DataGrid控件使用技巧
将数据库内容绑定至DataGrid是非常简单的,我们所要做的就是通过SQL查询来生成一个DataReader对象,将DataGrid的DataSource属性设为这个DataReader对象,然后调用DataGrid对象的DataBind()方法。剩下的事情就是将DataGrid放置到HTML中,
-DataGrid control skills will use the database content to bind DataGrid is very simple, we have to do is through SQL query to generate a DataReader object to the DataGrid DataSource attribute set to the DataReader object, and then call DataGrid object DataBind () method. The remaining issues will DataGrid is placed into HTML,