Exemplo n.º 1
0
 private void buttonPrePage_Click(object sender, EventArgs e)
 {
     if (Convert.ToInt32(this.labelPageNum.Text) - 1 < 1)
     {
         return;
     }
     this.labelPageNum.Text        = (Convert.ToInt32(this.labelPageNum.Text) - 1).ToString();
     this.dataGridView1.DataSource = LetterBll.GetListByPage("", "ID asc", (Convert.ToInt32(this.labelPageNum.Text) - 1) * 3 + 1, Convert.ToInt32(this.labelPageNum.Text) * 3);
 }
Exemplo n.º 2
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     this.dataGridView1.DataSource = LetterBll.GetListByPage("", "ID asc", 1, 3);
 }