本文介绍了转发器中的固定列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 经过大量的工作后,我设法在转发器中修复(冻结)我的标题。 现在我必须修复前2-3列。已经得到谷歌的帮助,但它并没有真正帮助。 有人可以帮助我。 这样的东西,但对于中继器: http://www.massless.org/_tests / grid1 /?s = 1& r = 40& c = 40 [ ^ ] 谢谢。 ps这是我用来修复标题的原因 function fixHeader() { var t = document.getElementById( table); var thead = t.getElementsByTagName( thead)[ 0 ]; var t1 = t.cloneNode( false ); t1.appendChild(thead); tableHeader.appendChild(t1)} 解决方案 不确定是否需要标题和前2列冻结,但如果不是两个你可能需要看看这里链接 [ + ] 否则这将起作用 此 .dataGridView1.Columns [ columnName]。Frozen = true ; 发现此来源也显示上述代码作为解决方案 clickey [ * ] After a lot of work i managed to fix(Freeze) my headers in repeater.Now I Have to get the first 2-3 columns fixed.I have taken help of Google but it isnt really helping.Can someone please help me.Something like this but for repeaters:http://www.massless.org/_tests/grid1/?s=1&r=40&c=40[^]Thanks.p.s.This is what I have used for fixing headersfunction fixHeader(){var t = document.getElementById("table");var thead = t.getElementsByTagName("thead")[0];var t1 = t.cloneNode(false);t1.appendChild(thead);tableHeader.appendChild(t1)} 解决方案 Not sure if you want the header and the first 2 columns frozen but if not both you may have to take a look here link[+]Or else this will workthis.dataGridView1.Columns["columnName"].Frozen = true;found this source that also shows the above code as a solution clickey[*] 这篇关于转发器中的固定列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-26 17:08