i have a really simple gridview. at the moment when the page loads, it populates the grid with 10 rows - via a datatable.
the grid has been set to enable paging - 10 items per page
i have a button in the footer.. what i would like this button is to add a new page in the grid.
so when this button is clicked a new page it added and it is populated with 10 rows in the grid and from there on i can flick through the pages.
please can someone help me work this out as i have been tring for a long time now.
the following is my aspx and cs page.
any suggestions and examples would be much appreciated.
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" style="width: 201px"
ShowFooter="True" AllowPaging="True" PageIndex="10" OnPageIndexChanging="Grid_PageIndexChanging">
<PagerSettings FirstPageText="First" LastPageText="Last" NextPageText="Next"
View Complete Post