6
A
回答
0
使用jQuery floatThead
http://mkoryak.github.io/floatThead/#intro
我不得不使用位的jQuery转换到第一行的THEAD为它工作。
例如下面:
$(document).ready(function() {
var $theadCols = $("#ContentPlaceHolder1_grdCashflow tr:first-child"),
$table = $("#ContentPlaceHolder1_grdCashflow");
// create thead and append <th> columns
$table.prepend("<thead/>");
$table.find("thead").append($theadCols);
// init stickyHeader
$table.floatThead();
//$table = $("#ContentPlaceHolder1_grdCashflow");
$table.dataTable(
{
"paging": false,
"ordering": false,
"dom":'<"top"fi>rt<"bottom"><"clear">'
}
);
});
相关问题
- 1. GridView冻结标题行
- 2. 冻结标题中的GridView
- 3. 只在垂直滚动条上冻结gridview标题
- 4. 滚动时冻结列标题
- 5. 垂直滚动时冻结gridview pager
- 6. 在ASP.NET中冻结GridView标题?
- 7. GridView与冻结标题和PagerTemplate
- 8. GridView:冻结第一列和冻结列的标题
- 9. 鼠标滚动冻结铬标签
- 10. $ ionicScrollDelegate冻结滚动
- 11. Listview滚动冻结
- 12. 在GridView中冻结标题标题asp.net c#
- 13. Slickgrid垂直滚动冻结列问题
- 14. 冻结gridview标头和SUB标头
- 15. Grid/ScrollViewer-冻结网格标题行垂直滚动,但不是水平滚动
- 16. JScrollPane具有冻结和可滚动组件的列标题
- 17. 在SSRS中滚动时冻结列标题
- 18. 滚动时在浏览器中冻结列标题
- 19. 滚动行时无法冻结表格标题?
- 20. Wpf datagrid滚动条冻结
- 21. $ ionicScrollDelegate.scrollTop冻结页面滚动
- 22. GridView冻结页眉
- 23. 固定gridview标题,而滚动
- 24. IE8固定标题,可滚动GridView
- 25. Datagridview冻结标题行
- 26. 在ASP GridView中冻结列/标题Chrome和IE9 +
- 27. 水平和垂直GridView与冻结标题和列
- 28. 保持Gridview标题与列冻结后列的大小相同
- 29. GridView滚动奇怪问题
- 30. GridView中的列冻结
下面的链接显示了一种方法来实现这一[冻结GridView的列和集管在ASP.Net CSS](http://www.vbknowledgebase.com/?Id=91&Desc= Freeze-GridView-Columns-and-Headers-in-ASP.Net-CSS)我为此问题添加了2个链接,您可以尝试。对我来说,我建议的第一个工作,所以很可能你错过了一些东西。然而,其他两种解决方案也在工作,所以你可以试用它们。 [使用固定标题的Gridview](http://www.codeproject.com/Articles/250669/Gridview-with-Fixed-Header)和[通过创建客户端扩展程序来冻结ASP.NET GridView标题](http:// weblogs .asp.net/d – 2012-03-10 19:08:20
感谢Aristotelis。但我已经尝试过,这对我没有任何作用。是否有任何方法冻结标题编程方式。 – Indra 2012-03-11 03:57:34
我试过类似的东西... http://stackoverflow.com/questions/28351955/how从列表和一个asp-net-generated-gridview-tabl,但宽度不匹配 – SearchForKnowledge 2015-02-05 21:08:14