asp:gridview问题.. [英] asp:gridview problem..

查看:70
本文介绍了asp:gridview问题..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在分页概念的第一页(没有第二页时)中从gridview隐藏页脚?
我必须设置哪些属性.....?

Hi How do I hide footer from gridview during 1st page( when there is not 2nd page) in paging concept.....?

Which propeties do I have to set.....?

推荐答案

无需设置任何属性.
如果不.行数不超过网格大小,那么页脚将不显示分页.
No need to set any properties.
if no. of rows is not more than grid size then footer will not show paging.


如果您仍然发现麻烦,请:
1.设置页面大小.
2.检查数据集的行数.
3.如果数据集的行数大于页面数,则分页应可见或不可见.因此,基于此,决定显示/隐藏网格页脚.

因此,类似:
In case you stil find trouble, then:
1. Set a page size.
2. Check the row count of Dataset.
3. If the rowcount of dataset is more than the page count, then pagination should be visible or else not. So based on this, decide to show/hide grid footer.

Thus, something like:
if(rowCount > Grid.PageSize)
  Grid.ShowFooter = true;
else
  Grid.ShowFooter = false;


这篇关于asp:gridview问题..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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