方法為自定義的無返回值類型方法在線購物系統數據分頁是什么,該方法主要用來從數據庫中查詢出符合指定條件的記錄,并綁定到控件中,然后通過設置類對象的屬性為True在線購物系統數據分頁是什么,來實現控件的分頁功能。方法實現代碼如下:
void ()
{
int = .(this..Text);
ps = new ();
= new ();
.Open();
= " a.*,b.* from as a join as b on a.=b.";
= new (, );
ds = new ();
.Fill(ds, "");
ps. = ds.[""].;
ps. = true; //是否可以分頁
ps. = 2; //顯示的數量
ps. = - 1; //取得當前頁的頁碼
this.. = true;
this.. = true;
this.. = true;
this.. = true;
if ( == 1)
{
this.. = false;//不顯示第一頁按鈕
this.. = false;//不顯示上一頁按鈕
}
if ( == ps.)
{
this.. = false;//不顯示下一頁
this.. = false;//不顯示最后一頁
}
this..Text = .(ps.);
this.. = ps;
this.. = "";
this..();
.Close();
}