如何在客户端给分页到gridview [英] how to give paging to gridview in the client side

查看:62
本文介绍了如何在客户端给分页到gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我遇到了一个问题,我将所有记录绑定到grid.i需要分页到grid客户端.
在此先感谢


i faced the one problem,i bind the all records to grid.i need paging to grid client side.
thanks in advance

推荐答案

<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"


AllowPaging="True"

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{

 //write code 

}


在.aspx页面的gridview标记中,您可以添加一个属性"allowPaging = true",并且您还可以设置页面大小,即数字一页中网格中的行数.
它的完成方式是:

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:GridView ID="GridView1″ DataSourceID="TitlesSource" EnableSortingAndPagingCallbacks="true"

AllowPaging="true" PageSize="10" runat="Server" />


请参阅:
使用JQuery进行客户端Gridview分页 [
refer :
Client Side Gridview Pagination using JQuery[^]


这篇关于如何在客户端给分页到gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆