asp.net Gridview中页脚和页眉的固定高度 [英] FIXED HEIGHT FOR footer and header in Gridview in asp.net

查看:99
本文介绍了asp.net Gridview中页脚和页眉的固定高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有网格,需要分页的页眉和页脚都具有固定高度,每页有10条记录,例如我从数据库中获取12条记录,在第一页中,显示10条记录正确地,GRID高度为220px,而在第二页中,显示了2条记录,那时页脚颜色正在填充空白记录的位置.但我需要那里的空白处,请帮助我,最近两天我一直在努力完成这项任务.网格高度是固定的

I have grid in my project in that i need the fixed height for both header and footer with pagination, i have 10 records per page, for instance i am taking 12 records from database,in the first page, 10 records is showing correctly, GRID height is 220px, while in the second page, 2 records are showing, at that time footer color is filling the place of the empty records. but i need the empty space there, Please help me, I am strugling in this task for last two days. the grid height is fixed

推荐答案

此链接可引导您如何使用gridview属性http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview_properties.aspx


__________________________________________________________________________________

如果有用的话,请投票
This links navigates you to how to use gridview properties http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview_properties.aspx


__________________________________________________________________________________

If it is useful please upvote


这篇关于asp.net Gridview中页脚和页眉的固定高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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