固定网格视图标题与网格视图数据不对齐 [英] Fixed grid view header do not align with grid view data
本文介绍了固定网格视图标题与网格视图数据不对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这里遇到一个问题,在应用固定网格视图标题后,它与我的网格视图数据不对齐。在我编码以修复标题之前,网格视图列与列数据很好地对齐。
以下是我面临的示例问题:
http://i.stack.imgur.com/TtGOa.png [ ^ ]
滚动条将数据网格推送到一边。
解决方案
而不是使用Javascript,最好使用Jquery插件来实现2-3行代码。请参阅下面的链接,这里我将解释如何逐步滚动带有固定标题的行 http://www.dotnetspider.com/resources/45021-Scrollable-GridView-using-JQuery.aspx [ ^ ]
http://www.dotnetbull.com/2011/11/scrollable-gridview-with-fixed-headers.html [<一个href =http://www.dotnetbull.com/2011/11/scrollable-gridview-with-fixed-headers.htmltarget =_ blanktitle =新窗口> ^ ]
I have a problem here which after applying fixed grid view header it does not align with my grid view data. Before the I code it to fixed the header, the grid view columns align well with the column data.
The following is the sample problem I am facing:
http://i.stack.imgur.com/TtGOa.png[^]
The scroll bar pushes the datagrid to the side.
解决方案
Instead of go with Javascript, better to use Jquery plugins to achieve this by 2-3 lines of code. Refer below link, here I'm explaining how to scroll the rows with fixed headers step by step http://www.dotnetspider.com/resources/45021-Scrollable-GridView-using-JQuery.aspx[^]
http://www.dotnetbull.com/2011/11/scrollable-gridview-with-fixed-headers.html[^]
这篇关于固定网格视图标题与网格视图数据不对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文