修复了网格视图中的标题 [英] Fixed header in grid view

查看:63
本文介绍了修复了网格视图中的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网格视图中有一个固定的标题和一个滚动条。

标题内容应该从数据库中获取。

I want to have a fixed header and also a scroller in the grid view.
The header content should be fetched from database.

推荐答案

在CSS中使用以下代码并在gridview中引用此css

.fixedHeader

{



font-weight:bold;



position:absolute;



background-color:#006699;



颜色:#ffffff;



身高:25px;



top:expression(Sys.UI.DomElement.getBounds(document.getElementById(" panelContainer"))。y-25);



}
Use the below code in CSS and reference this css in gridview
.fixedHeader
{

font-weight:bold;

position:absolute;

background-color: #006699;

color: #ffffff;

height: 25px;

top: expression(Sys.UI.DomElement.getBounds(document.getElementById("panelContainer")).y-25);

}


请参考:

我对类似问题的回答:如何在gridview中制作静态标题? [ ^ ]



CP上的一些好链接:

带固定标题的网格视图 [ ^ ]

Gridview固定标题 [ ^ ]

网格视图固定标题 [ ^ ]



类似讨论:

固定的GridView标题 [ ^ ]



CP搜索:

Grid with fix Header [ ^ ]
Please refer:
My answer for similar question: How to make static header in gridview?[^]

Some good links on CP:
Gridview with Fixed Header[^]
Gridview Fixed Headers[^]
Grid View with Fixed Header[^]

Similar discussion:
Fixed GridView Header[^]

CP Search:
Grid with fix Header[^]


这篇关于修复了网格视图中的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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