Devexress XPO xpPageSelector 使用
在官网找到的。在这里做个备注。
private void simpleButton1_Click(object sender, EventArgs e) { if (xpPageSelector1.CurrentPage == 0) return; xpPageSelector1.CurrentPage--; UpdateLabel(); } private void UpdateLabel() { labelControl1.Text = string.Format("第 [{0}]页 共 【{1}】页", xpPageSelector1.CurrentPage+1, xpPageSelector1.PageCount); } private void simpleButton2_Click(object sender, EventArgs e) { if (xpPageSelector1.CurrentPage == xpPageSelector1.PageCount - 1) return; xpPageSelector1.CurrentPage++; UpdateLabel(); }