——此文章摘自《ASPNET +SQL Server网络应用系统开发案例精解》定价¥特价¥ 详细>> STmysql = select STProDeIDSTProDeSTProdIDSTDepSTDepNameSTProDeSTProdName STProDeSTProdNumSTProDeSTProdPriceSTProDeSTProdBZSTProDeSTProdSH STProDeSTProdInfo from STProDeSTDep where STProDeSTDepID = STDepSTDepID; //生成SqlDataAdapter类的实例 SqlDataAdapter STsda=new SqlDataAdapter(STmysqlSTconn); DataSet STds=new DataSet(); //填充数据集 STsdaFill(STds); STmyGridDataSource = STds; //绑定到控件 STmyGridDataBind(); } //处理分页 public void STmyGrid_Page(object senderDataGridPageChangedEventArgs e) { //获取DataGrid的当前显示页的索引 STmyGridCurrentPageIndex=eNewPageIndex; BindGrid(); } [] [] [] [] [] [] [] |