Get7thDeData 是一个组件,用来从数据库得到数据,并填充在DataSet里。望大家想想是什么问题,谢谢!

解决方案 »

  1.   

    当然了,ISPOSTBACK为FALSE表示只有在系统第一次打开页面时执行,当你选择其他页时页面也要刷新啊,此时ISPOSTBACK为TRUE,就不执行数据绑定了,所以,就不显示了,呵呵
      

  2.   

    我PostBack回来后是调用ChangePage()它也有DataBind()事件,所以应该不是这里有错!!
      

  3.   

    这样也行:
    void ChangePage(Object objSender, DataGridPageChangedEventArgs objArgs )
    {
    BindDataGrid();
    // update the current page number from the parameter values
    ProductManDataGrid.CurrentPageIndex = objArgs.NewPageIndex; // recreate the data set and bind it to the DataGrid control
    BindDataGrid();
    }
      

  4.   

    谢谢,我已经解决了,困扰了好几天,原来是我的DataGrid的EnableViewState="false",所以就出现这种问题!!结分~~
      

  5.   

    谢谢,我已经解决了,困扰了好几天,原来是我的DataGrid的EnableViewState="false",所以就出现这种问题!!结分~~
      

  6.   

    你原有写法是正确的,就要检查你ProductManDataGrid的属性写法有无的写小的,或检查有无调用到接口ChangePage.
      

  7.   

    主要原因在这里:
    ProductManDataGrid.DataSource = my7thDeDS;//第二次没执行它