以前也碰到过类似情况,你可以尝试以下方法:
 1.查看DataGrid是否有连接到了PageIndex_changed事件.
 2.尝试着在PageIndex_changed随便加行代码(例:int a = 0;没有实际效果,但断点或许可以进去)