asp.net中的自定义分页,带有显示1,2,3 ...... 5的gridview [英] Custom pagin in asp.net with gridview showing 1,2,3......5

查看:57
本文介绍了asp.net中的自定义分页,带有显示1,2,3 ...... 5的gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生您好
我想使用显示这样的自定义分页在gridview中显示数据
1,2,3,4,5 ... 30.
我该怎么做

Hello sir
I want to display data in gridview using custom paging showing something like this
1,2,3,4,5...30 .
how can i do this

推荐答案

引用:
具有自定义分页的ASP.NET增强网格视图 [ ^ ]
在ASP.Net GridView中进行自定义分页 [ ^ ]
具有自定义分页功能的ASP.NET GridView [ GridView的自定义分页 [ ^ ]
网格视图内的自定义分页 [ ^ ]
自定义网格视图 [ CodeProject [ ^ ]
Refer:
ASP.NET Enhanced Grid View with Custom Pagination[^]
Custom Paging in ASP.Net GridView[^]
ASP.NET GridView with Custom Paging[^]
Custom Paging for GridView[^]
Custom paging inside grid view[^]
Custom gridview[^]

..and lot more on CodeProject[^]


set
allowpaging = true
pagesize =所需的否

在gridview的属性中

绑定页面索引更改事件中的数据

set
allowpaging =true
pagesize=desired no

in properties of gridview

bind data from page indexchanged event

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
     bindmethod();//call to method binds data
    }




使用
页面设置和
使用pagerstyle属性来创建您的分页样式..




use
pagersettings and
pagerstyle proprerties to create your paging styles..


这篇关于asp.net中的自定义分页,带有显示1,2,3 ...... 5的gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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