STmysql =
STProDe
//生成SqlDataAdapter類的實例
SqlDataAdapter STsda=new SqlDataAdapter(STmysql
DataSet STds=new DataSet();
//填充數據集
STsda
STmyGrid
//綁定到控件
STmyGrid
}
//處理分頁
public void STmyGrid_Page(object sender
{
//獲取DataGrid的當前顯示頁的索引
STmyGrid
BindGrid();
}
[
From:http://tw.wingwit.com/Article/program/net/201311/15497.html