gridview高度,分页问题 [英] gridview height,paging problem

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

问题描述

大家好,

我正在使用gridview以良好的方式显示数据..它在功能上完美地工作..但是问题是我想固定gridview的高度,该高度将独立于没有记录或没有记录...网格的页脚应发生在同一时间.

并且如果只有2条记录且页面大小为10,则它应该不覆盖整个spce.在每种情况下,行高都应相同.....
如果有onley 2记录仍在页脚的第1页显示如何隐藏该页.当ter只有1页时,它不显示第1页.

hi everyone,

I''m using gridview to display data in well manner..its working perfectly in functionality..But the problem is i want to fix the height of gridview which will independent of no of records or no records...footer of grid should occur on same place evry tim.

and if there are only 2 records and page size is 10 then it shud not to cover whole spce .row height should be same in evry case.....
if there are onley 2 records still its showing page 1 on footer how to hide that.it shud not display page 1 when ter is only 1 page.

推荐答案

根据您的条件在代码后面应用高度.
You can apply the height in code behind based on your conditions.


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

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