Skip to main content
Bumped by Community user
Tweeted twitter.com/StackSharePoint/status/1013615179920216065
Tidied and re-tagged
Source Link
Charles Lee
  • 2k
  • 15
  • 20

SPgridview Paging Problem with paging in an SPGridView

We are using SPGridView , and binding it withto the database.The Paging inis also enable, Gridenabled.

The grid is showing 10 records in the grid as the pagesize is 10, btbut 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)

{"There are no items to show in this view"

Grid.PageIndex = e.NewPageIndex; Grid.DataBind(); }The PageIndexChanging event code is:

void Grid_PageIndexChanging(object sender, GridViewPageEventArgs e)
{

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

}

and The Second problem is that when iI select a row in spgridSPGrid the date columns getare empty.

doesDoes anyone know how to do paging with SPGridView? SAAD

SPgridview Paging Problem

We are using SPGridView , and binding it with database.The Paging in also enable, Grid showing 10 records in the grid as the pagesize is 10, bt when we click on 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(); }

and The Second problem is that when i select a row in spgrid the date columns get empty.

does anyone know how to do paging? SAAD

Problem with paging in an SPGridView

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?

Source Link
sbtahir
  • 225
  • 2
  • 14

SPgridview Paging Problem

We are using SPGridView , and binding it with database.The Paging in also enable, Grid showing 10 records in the grid as the pagesize is 10, bt when we click on 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(); }

and The Second problem is that when i select a row in spgrid the date columns get empty.

does anyone know how to do paging? SAAD