QuickStart sample?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • LL

    #1

    QuickStart sample?

    Hi,

    I'm testing the QuickStart's datagrid10.aspx . I add paging property to
    the grid.

    private void MyDataGrid_Page IndexChanged(ob ject source,
    System.Web.UI.W ebControls.Data GridPageChanged EventArgs e)
    { MyDataGrid.Curr entPageIndex = e.NewPageIndex;
    BindGrid();
    }

    I found that when delte the lastrecord on other page, got this error:


    Exception Details: System.Web.Http Exception: Invalid CurrentPageInde x value.
    It must be >= 0 and < the PageCount.

    Source Error:


    Line 92:
    Line 93: MyDataGrid.Data Source=ds.Table s["Employee"].DefaultView;
    Line 94: MyDataGrid.Data Bind();
    Line 95: }
    Line 96:


    Source File: c:\project\QS\d atagrid10.aspx. cs Line: 94

    How to fix it?

    Thansk..




Working...