用于GridView ASP.NET的用户控件 [英] usercontrol for gridview asp.net

查看:72
本文介绍了用于GridView ASP.NET的用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望用户控制显示页面大小的下拉列表,总页面数和没有页面下拉列表,以便它直接转到该页面.我不希望数据库的页面大小,而不是我希望根据记录数从gridview的页面大小.任何人的帮助都请提前谢谢

i want usercontrol that display drop down of page size ,total no of pages,and page no dropdown so it directly go that page. i dont want page size from database instead of that i want page size from gridview according to number of record. any one help please thanx in advance

推荐答案

好,将数据源的记录计数发送到网格视图.这应该可以为您提供在网格视图中显示的记录总数.

如果您正在使用分页,则可能此线程 [
Well get the record count of the datasource to the grid view. This should give you the total number of records you have displayed in the gridview.

If you are using paging, then maybe this thread[^] can help you.


这篇关于用于GridView ASP.NET的用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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