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?

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

  • i Follow the same blog. – sbtahir Apr 19 '10 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 Jul 2 at 1:43

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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