{
Response
}
}
public void BindGrid()
{
string STNickName = Session[
//創建查詢指定連鎖店產品信息的sql語句
STmysql =
//創建SqlDataAdapter的實例
SqlDataAdapter STsda=new SqlDataAdapter(STmysql
//創建DataSet的實例
DataSet STds=new DataSet();
//將信息填充到DataSet
STsda
//將信息綁定到DataGrid
STmyGrid
STmyGrid
}
//處理分頁
public void STmyGrid_Page(object sender
{
//獲取DataGrid的當前顯示頁的索引
STmyGrid
//重新顯示數據
BindGrid();
}
單擊
public void dgItem(object source
{
//獲取要編輯的ID號
int ID = int
//單擊
if(e
{
//彈出用於編輯的窗口
Response
}
[
From:http://tw.wingwit.com/Article/program/net/201311/15284.html