作者:空心悟心 | 来源:互联网 | 2023-09-09 15:33
Workingon:asp.netGridviewControlokitriedandtriedandmaybesearchedtheentirewebbuti
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...
工作:asp.net Gridview控件确定我试过并尝试过,也许在整个网络上搜索...但是我找不到任何有益于我的asp.net gridviewcontrol,它可以修复标题并允许排序。但大多数都在所有浏览器中工作,而不仅仅是IE和Firefox ....铬是主要问题没有任何效果...
this was one option:
这是一个选择:
.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}
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.
但在这里我首先得到一个错误,“表达式(this.offsetParent.scrollTop);”在顶部无效。即使这适用于所有浏览器。
then there was this link:
然后有这个链接:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=255
but it only worked for IE and Firefox and that too not for IE 8.
但它只适用于IE和Firefox,而且不适用于IE 8。
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..
然后有一些例子,其中伪标题是在固定位置创建的,但我在我的项目中有如此多的网格视图,对齐变得混乱......同时这也是在Chrome中有2个标题...搞笑..
like the one here... http://aspdotnetcodebook.blogspot.com/2008/03/fixed-header-in-gridview-cross-browser.html
喜欢这里的那个... http://aspdotnetcodebook.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...
所以现在我放弃..如果有人知道更好的事情......或者认为我在某个地方出错了请帮忙......
thanks...
2 个解决方案