Mayur  Gujrathi

Mayur Gujrathi

  • 409
  • 3.9k
  • 1m

facing problem in gridview paging

Apr 8 2011 6:07 AM
Dear experts
I am facing problem in gridview paging . i am doing like this
using vb.net as code behind file in asp.net

Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
      
        GridView1.PageIndex = e.NewPageIndex
        GridView1.DataBind()
    End Sub

<asp:GridView ID="GridView1" runat="server" class="grhd" CellPadding="4"
            ForeColor="#333333" GridLines="None" Width="195px" AllowPaging="True"
           PageSize="6" OnPageIndexChanging="GridView1_PageIndexChanging" >
  </asp:GridView>

Answers (14)