title: 'NewPageIndex' is not a member of 'System.Event.Args'
body: <p>Afternoon All,</p>
  
  <p>I have a simple gridview with list items items that have been uploaded to file.  I had an issue with paging on my gridview.  As i selected page two the webpage would fail.</p>
  
  <p>After looking aroud on the internet, i have seem that i need to add a PageIndexChanging' event to my gridview.  I have tried to complete this via the following code but have a issue with <code>e.NewPageIndex</code>, this has an error that states... 'NewPageIndex' is not a member of 'System.Event.Args'.</p>
  
  <p>Here is the vb for the PageIndexChanging event...</p>
  
  <pre><code>Protected Sub UploadedFiles_PageIndexChanging(ByVal sender As Object, ByVal e As System.EventArgs) Handles UploadedFiles_PageIndexChanging
      UploadedFiles.PageIndex = e.NewPageIndex
      UploadedFiles.DataBind()
  End Sub
  </code></pre>
  
  <p>And here is my gridview code...</p>
  
  <pre><code>       &lt;asp:GridView  ID="UploadedFiles" 
             DataSource="&lt;%# GetUploadList() %&gt;" 
             runat="server" 
             CssClass="mGrid" 
             Width="300px"   
             PagerStyle-CssClass="pgr" 
             AlternatingRowStyle-CssClass="alt"  
             CellPadding="4" 
             ForeColor="#333333" 
             AllowPaging="True" 
             PageSize="2" 
             AllowSorting="True" &gt; 
          &lt;AlternatingRowStyle CssClass="alt" /&gt;
          &lt;PagerStyle CssClass="pgr" /&gt;
         &lt;/asp:GridView&gt;  
  </code></pre>
  
  <p>Many thanks in advance for an help.</p>
  
  <p>Regards
  Betty</p>