I am facing a problem in paging event of gridview. When I click on the next index of the grid, the grid disappears. When I again click the button(which brings up the gridview at first), grid appears.

The code is also proper.

Protected Sub dgDatafix_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles dgDatafix.PageIndexChanging

dgDatafix.PageIndex = e.NewPageIndex
End Sub

Please help.