熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

連鎖中心配送系統:銷售統計管理[7]

2022-06-13   來源: .NET編程 
    ——此文章摘自《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();
    }

[]  []  []  []  []  []  []  


From:http://tw.wingwit.com/Article/program/net/201311/15497.html
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.