paging in grid view control
-
I want to implement paging in grid view control. I set the allowpaging property to true in properties of grid view control. But still it is not working. plz help me
-
I want to implement paging in grid view control. I set the allowpaging property to true in properties of grid view control. But still it is not working. plz help me
-
I want to implement paging in grid view control. I set the allowpaging property to true in properties of grid view control. But still it is not working. plz help me
Put the following code: Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging Try GridView1.PageIndex = e.NewPageIndex() BindGridView()'Bind GridView Catch ex As Exception End Try End Sub Happy Coding:)
-
Put the following code: Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging Try GridView1.PageIndex = e.NewPageIndex() BindGridView()'Bind GridView Catch ex As Exception End Try End Sub Happy Coding:)
thanks u very much.. Your and my coding style is same.. i did the same thing.. but do u know what is the disadvantage of paging in grid view control.. Once u click on second page it wil display the same page.. to show that data you need to retrieve the same data again.. coz gridview never maintain the history.. to see the next page you need to call the same procedure..