private void btnNext_Click(object sender, EventArgs e)
{
if(this.PageNo>=this.MaxPageNo)
{
return;
}
this.PageNo++;
//this.RowIdView.RowFilter = $"RowID>({this.PageNo-1})*{this.PageSize} AND RowID<={this.PageNo}*{this.PageSize}";
this.RefreshRowFilte();//替换上一行
if (PageNo == MaxPageNo)
{
this.btnNext.Enabled = false;
}
}
下面这张图是同样的实现功能
来源:https://bbs.youkuaiyun.com/topics/350263219?list=2380707