5

We are using SPGridView and binding it to the database. Paging is also enabled.

The grid is showing 10 records as the pagesize is 10, but when we click on the next page it says

"There are no items to show in this view"

The PageIndexChanging event code is:

void Grid_PageIndexChanging(object sender, GridViewPageEventArgs e)
{

  Grid.PageIndex = e.NewPageIndex;
  Grid.DataBind();

}

The Second problem is that when I select a row in SPGrid the date columns are empty.

Does anyone know how to do paging with SPGridView?

1 Answer 1

1

Powlo has posted a couple of great blog posts about using SPGridView including paging.

2
  • i Follow the same blog.
    – sbtahir
    Commented Apr 19, 2010 at 6:20
  • Answers that are solely links to other answers are not appropriate on SharePoint.SE. Please post some content from the link into your answer so that it answers the question on its own.
    – Nacht
    Commented Jul 2, 2018 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.