Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i faced the one problem,i bind the all records to grid.i need paging to grid client side.
thanks in advance
Posted

C#
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" font-bold="False" font-names="Tahoma" font-size="11px" forecolor="#4C4C4C" xmlns:asp="#unknown">
        PageSize="14"  TabIndex="16" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" >

AllowPaging="True"
C#
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{

 //write code 

}
 
Share this answer
 
v2
In the .aspx page in the gridview tag, u can add a property that "allowPaging=true" and u can also set the page size, that is the number of rows in the grid on one page.
It is done as :

ASP.NET
<asp:GridView ID="GridView1″ DataSourceID="TitlesSource" EnableSortingAndPagingCallbacks="true"
AllowPaging="true" PageSize="10" runat="Server" />
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900