求教grid分页的时候currentpageindex出错! 既然,你也知道错误在哪里,那就重新绑定一下不就可以了,最多将他的this.datagrid.currentpageindex重置为1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己摸索解决了1. click事件 设置this.datagrid.currentpageindex=0然后绑定grid; 2.pageindexchange 事件 设置if(this.ispostback){this.datagrid.currentpageindex=0;}else{this.datagrid.currentpageindex=e.newpageindex;}然后再绑定grid. 如果有错请各位指正!! C#修改*.txt文件的特定行内容好像是个技术活,大家帮帮我! 如何获取当前页面的命名空间名称 在c#中自动提交一个页面?急!!!在线等!! api函数调用问题? ContextMenu的重画问题 聊天室无刷新问题 c# web编程里select语句字符串里 where 后面怎么含参数? 如何点击删除按钮显示提示信息 关于groupbox的问题? C#连续纸的问题,WIN10+EPSON730KII+.NET462 c# DllImport 相对路径 链表与c#数据结构中LIST<T>
1. click事件 设置this.datagrid.currentpageindex=0然后绑定grid;
2.pageindexchange 事件 设置
if(this.ispostback)
{
this.datagrid.currentpageindex=0;
}
else
{
this.datagrid.currentpageindex=e.newpageindex;
}
然后再绑定grid. 如果有错请各位指正!!