dev 控件 ASPxPivotGrid 分页问题 dev 控件 ASPxPivotGrid 分页时, 第一次点击某页可以正常翻页,再次点不能正常翻页, 报出异常:unexpected data update required ,PageIndexChanged 事件有重新绑定,没搜到答案,请高手指点。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你没有写RadGrid1_PageIndexChanged事件,这个事件是处理翻页功能的。参考下面代码 private int currentPageIndex; void RadGrid1_PageIndexChanged(object source, GridPageChangedEventArgs e) { currentPageIndex = e.NewPageIndex; } void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { int totalRecords = 0; string ip = ""; if (!string.IsNullOrEmpty(txtIP.Text)) ip = txtIP.Text; if (ip != "") { AccessLogInfo alinfo = AdminDaab.GetIPTrack(ip); lblIP.Text = alinfo.IP; lblAddDateTime.Text = alinfo.AddDateTime.ToString("yyyy-MM-dd HH:mm:ss"); lblOS.Text = AdminTools.GetOS(alinfo.OS); lblBrowser.Text = alinfo.Browser; lblPixel.Text = alinfo.Pixel; lblLanguage.Text = alinfo.Languages; lblPageFileName.Text = alinfo.PageFileName; lblRefererDomain.Text = alinfo.RefererDomain; } RadGrid1.DataSource = AdminDaab.ListIPTrack( ip, RadGrid1.PageSize, currentPageIndex, ref totalRecords); RadGrid1.VirtualItemCount = totalRecords; } 关于:MessageBox.Show() Winform 操作Excel时的问题 字符串截取 请问SoapHeader在Server端怎样被初始化? 在C#中,用可视化界面连接oracle服务,在查询oracle数据库时,如何实现以下查询 ##DataTable 中的DataRow 问题!!! 创建控件时出错,这种问题如何解决!~ 请问报表的输入接口(获取数据源)有哪几种 winform下如何禁止datagrid的删除和捕获删除事件 誰能給一個完整的SQLDATABASE底層連接類啊 请教一个C#+后台SQL的问题! 看MSDN看不懂 谁能解释一下呀TranslateTransform
void RadGrid1_PageIndexChanged(object source, GridPageChangedEventArgs e)
{
currentPageIndex = e.NewPageIndex;
}
void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
int totalRecords = 0;
string ip = "";
if (!string.IsNullOrEmpty(txtIP.Text))
ip = txtIP.Text;
if (ip != "")
{
AccessLogInfo alinfo = AdminDaab.GetIPTrack(ip);
lblIP.Text = alinfo.IP;
lblAddDateTime.Text = alinfo.AddDateTime.ToString("yyyy-MM-dd HH:mm:ss");
lblOS.Text = AdminTools.GetOS(alinfo.OS);
lblBrowser.Text = alinfo.Browser;
lblPixel.Text = alinfo.Pixel;
lblLanguage.Text = alinfo.Languages;
lblPageFileName.Text = alinfo.PageFileName;
lblRefererDomain.Text = alinfo.RefererDomain;
}
RadGrid1.DataSource = AdminDaab.ListIPTrack(
ip,
RadGrid1.PageSize,
currentPageIndex,
ref totalRecords);
RadGrid1.VirtualItemCount = totalRecords;
}