Gird Page

Results 1 to 2 of 2

Thread: Gird Page

  1. #1
    Join Date
    Dec 1969

    Default Gird Page

    I am getting error msg:"Invalid CurrentPageIndex value. It must be &#062;= 0 and &#060; the PageCount." Any idea why?<BR>My code is:<BR>Private Sub cmdSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click<BR> With dgrDetails<BR> .SelectedIndex = -1<BR> .DataSource = getData()<BR> .DataBind()<BR> .Visible = True<BR> End With<BR> End Sub<BR> Private Sub dgrDetails_PageIndexChanged(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEvent Args) Handles dgrDetails.PageIndexChanged<BR> With dgrDetails<BR> .CurrentPageIndex = e.NewPageIndex<BR> .SelectedIndex = -1<BR> .DataSource = getData()<BR> .DataBind()<BR> End With<BR> End Sub

  2. #2
    Join Date
    Dec 1969

    Default what line in that code is it happening?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts