放弃了固定的GridView头 [英] given up on gridview fixed header

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

问题描述

工作:asp.net GridView控件
好吧,我试了又试,也许找遍了整个网络......但我无法找到任何对我的asp.net gridviewcontrolwhich whill修正了头,并允许排序。但最重要的工作在所有浏览器,而不仅仅是IE和火狐单独镀铬....是主要的问题毫无效果......

Working on: asp.net Gridview Control ok i tried and tried and maybe searched the entire web... but i could not find anything good for my asp.net gridviewcontrolwhich whill fix the header and allow sorting. but most of all work in all browsers and not just IE and Firefox alone.... chrome was the main problem nothing worked...

这是一个选项:

.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
 z-index: 10;
}

但在这里,我第一次得到一个错误说:前pression(this.offsetParent.scrollTop);在顶部无效。即使这个工作它在所有浏览器。

but here i first get an error that "expression(this.offsetParent.scrollTop);" not valid in top. even if this worked it work on all browsers.

再有就是此链接:

http://www.dotnetcurry.com/ShowArticle.aspx?ID=255

但它仅适用于IE和Firefox和工作太不适合IE 8。

but it only worked for IE and Firefox and that too not for IE 8.

再有,其中伪头都是在固定的位置上创建的例子,但我有我的项目这么多的GridView的这对准就会失控......还当这样做了2头镀铬... ..搞笑

then there were examples where the pseudo headers were created at fixed location but i have so many gridviews in my project that the alignment go haywire... also when did this got 2 headers in chrome... funny..

最后的一个...
http://aspdotnet$c$cbook.blogspot.com/2008/03/fixed-header-in-gridview-cross-browser.html

所以,现在即时通讯放弃..如果任何人知道更好的东西......或者认为我的地方去错了,请帮助...

so now im giving up.. if any one knows anything better... or thinks i am going wrong somewhere please help...

感谢...

推荐答案

我不知道这是一个选择,但是的 Telerik的Grid控件允许一个固定的头,工作在所有的浏览器大,极其功能丰富的情况下,你需要做的分组或多-selection或任何性质的。

I don't know if this is an option for you, but Telerik's Grid control allows for a fixed header, works great in all browsers, and is extremely feature-rich in case you need to do grouping or multi-selection or anything of that nature.

再次也许不是一个可行的选择,如果你的店铺没有$ 800- $ 1000到到处乱扔第三方的工具,但是从我的经验,你会不会与Telerik的一套失望!

Again, maybe not a viable option if your shop doesn't have $800-$1000 to throw around for 3rd party tools, but from my experience, you won't be disappointed with Telerik's set!

这篇关于放弃了固定的GridView头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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