【实例简介】
DevExpress Navigator 示例,数据分页
【实例截图】
【核心代码】
///
/// 分页事件处理
///
/// 事件名称
/// 按钮控件
/// PengZhen
/// 2013-11-5 14:25:59
void ShowEvent(string eventString, NavigatorButtonBase button)
{
//string type = button.ButtonType.ToString();
NavigatorCustomButton btn = (NavigatorCustomButton)button;
string type = btn.Tag.ToString();
if (type == "首页")
{
pageIndex = 1;
}
if (type == "下一页")
{
pageIndex ;
}
if (type == "末页")
{
pageIndex = pageCount;
}
if (type == "上一页")
{
pageIndex--;
}
//绑定分页控件和GridControl数据
BindPageGridList(strWhere);
}