VB.NET: Reset DataGrid pageIndex = 0 on form submit?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default VB.NET: Reset DataGrid pageIndex = 0 on form submit?

    I have a datagrid populated by a stored procedure that accepts values from
    dropDownList boxes as parameters to filter the data. The datagrid also
    allows paging. The page generates an "Invalid CurrentPageIndex value. It
    must be >= 0 and < the PageCount." error when the parameters selected are
    such that a lot of data is fetched and you advance through several pages of
    results and then resubmit the dropDownList boxes with more restrictive
    parameters such that the page you were "on" no longer exists.

    Does anyone know of a way to set the pageIndex = 0 whenever the form is
    resubmitted? Thanks.


    Les Matthews Guest

  2. Similar Questions and Discussions

    1. All my drop down lists get reset to the first value when I go in to edit a record in the datagrid....
      I've got my datagrid working to the point where I can edit records and even pick different values in my dropdownlists, save the record and have that...
    2. reset custom form validation
      Hi there, I use a custom form validation on a form. When i use the form for the first time my name input field has no red line. when i cancel...
    3. Reset DataGrid
      I have a datagrid on a form that I populate with the following: DS.Clear() DA.Fill(DS,myTable) DataGrid1.DataSource = DS...
    4. Can't get form to submit or reset
      I am a first time flash form creator and I am having problems getting the form to reset and submit to an email. I followed the book to the letter...
    5. Form Field/ Form Submit Problems (probably an easy answer...)
      Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...
  3. #2

    Default Re: VB.NET: Reset DataGrid pageIndex = 0 on form submit?

    Does anyone have a function that will reset the CurrentPageIndex of a MM
    DataGrid to 0?


    "Les Matthews" <LesAMatthews@yahoo.com> wrote in message
    news:d48g0o$fb9$1@forums.macromedia.com...
    >I have a datagrid populated by a stored procedure that accepts values from
    >dropDownList boxes as parameters to filter the data. The datagrid also
    >allows paging. The page generates an "Invalid CurrentPageIndex value. It
    >must be >= 0 and < the PageCount." error when the parameters selected are
    >such that a lot of data is fetched and you advance through several pages of
    >results and then resubmit the dropDownList boxes with more restrictive
    >parameters such that the page you were "on" no longer exists.
    >
    > Does anyone know of a way to set the pageIndex = 0 whenever the form is
    > resubmitted? Thanks.
    >

    Les Matthews Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139