Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1620
NewPageIndex: Error coming after upgrading UltraWebGrid to WebDataGrid.....
posted

I am converting Infragistics 2010 v2 CLR3.5 to Infragistics 2014 v2 using 4.5 CLR using Visual Studio 2013 Professional Update 4. I am getting following error while building the project. Please reply immediately..........

Error 230 'System.Web.UI.WebControls.PageEventArgs' does not contain a definition for 'NewPageIndex' and no extension method 'NewPageIndex' accepting a first argument of type 'System.Web.UI.WebControls.PageEventArgs' could be found (are you missing a using directive or an assembly reference?)
 

Below error is there while fixing the code:

private void grid_PageIndexChanged(object sender, PageEventArgs e)
       
  {
  int tableID, pIndex, tIndex, gridPageSize;
  string tableNM, DB, filterExp = "", sortExp = "";
  pIndex = e.NewPageIndex;
  tIndex = contentTab.SelectedIndex + 1;
Parents
  • 540
    posted

    Hello Jack,

    The PageEventArgs now contain only the OldPageIndex. You can get the new page index like this:

    protected void WebHierarchicalDataGrid1_PageIndexChanged(object sender, PagingEventArgs e)

    {

       int pageIndex = (sender as ContainerGrid).Behaviors.Paging.PageIndex;

    }

    Let me know if I can be of further help.

Reply Children
No Data