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
155
Basic Paging - What else do I need to do?
posted

Hi,

I have a two band hierarchical web-grid that is bound to a two table dataset. I have the paging option switched on, and set to show 10 records per page. The grid loads perfectly. I can delete rows without any dramas. However, if I have more than 10 records returned, and select the next page, the next page loads with same data as the first page.

I thought that the inbuilt paging functionality would be able to handle the paging using the dataset provided. Is there something else I need to do to ensure that the next ten records are loaded into the grid when the selected page is changed?

 Thanks,

  • 3147
    posted

    Hi,

    do you catch the PageIndexChanged event?

    It should be something like this:

    protected void UltraWebGrid1_PageIndexChanged(object sender, Infragistics.WebUI.UltraWebGrid.PageEventArgs e)
    {

              UltraWebGrid1.DisplayLayout.Pager.CurrentPageIndex = e.NewPageIndex;
              BindGrid();
    }

    -Nick