Hi Paul,
Thanks for the solution facilitating paging in a GridView.
Would I need to do something like to below to set the current row via the RowIndex/PageIndex (below does not work)?
protected void grdSurveyDue_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
// Get the item to be updated
this.grdSurveyDue.EditIndex = e.RowIndex;
// Retrieve the previous SurveyDue DataSet
DataSet dsSurveyDue = (DataSet)Session["dsSurveyDue"];
// Get the DataRow, 11/29/2006 TAG include page factor (Paging not working yet)
DataRow CurrentRow = dsSurveyDue.Tables[this.oSurveyDue.TableName].Rows[e.RowIndex +
(this.grdSurveyDue.PageIndex * this.grdSurveyDue.PageSize)];
// Use the below to set the entity data row
this.oSurveyDue.Entity.SetDataRow(CurrentRow);
Thanks, Ted
>>Using the jump start example customerorders.aspx form I set AllowPaging=true, PageSize=3. I have no code in PageIndexChanging and PageIndexChanged events. The page links appear but it never pages - no errors. Does this need some addition code ?
>
>For paging, you can create a method which handles the PageIndexChanging() event of the GridView. Inside of this method, write code that does something like:
>
>
>// Replace with method(s) that retrieve your data.
>this.m_businessObject.GetAllData();
>this.grdGridView.PageIndex = e.NewPageIndex;
>this.DataBind();
>