效果视图
属性设置
Page —当前页
PagerCount —按键数量
PageSize --每页数据条数
PageSizes --下拉框哪里,可以更改每页数据条数类型如10条每页,20条每页
Total 总数据数量
核心事件
当前页面变化时候触发paginationControl1_CurrentPageChanged
每页数量发送变化是触发paginationControl1_PageSizeChanged
private void paginationControl1_CurrentPageChanged(object sender,PaginationEventArgs e)
{
Console.WriteLine(e.Value);
}
private void paginationControl1_PageSizeChanged(object sender, PaginationEventArgs e)
{
Console.WriteLine(e.Value);
}
代码视图
源码下载
链接: 下载