如何冻结网格视图中的多列 [英] How to freeze multiple columns in grid view

查看:108
本文介绍了如何冻结网格视图中的多列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个包含31列的网格视图,这些视图是使用从

We have a Grid View with 31 columns that are created dynamically using a template class inherited from

Itemplate.


要求冻结前8列,然后像Excel电子表格一样滚动其余列.

我们尝试了以下链接中提到的选项:-
冻结窗格数据网格

但是我们只能冻结第一列和标题.对于多列,它不起作用.


There is a requirement is to freeze first 8 columns and then able to scroll the remaining columns similar to excel spreadsheet.

We tried the option mentioned in the link below :-
The Freeze Pane DataGrid

But we were able to freeze the first column only along with headers. For multiple columns it is not working.

Please let us know how to implement this.

推荐答案

您最好的选择是在文章下方的论坛中提问,因为作者会更多地了解他的做法. .您是否阅读了代码以查看是否存在扩展其功能的明显方法?
Your best bet is to ask in the forum below the article, as the author will know more about how he did it. Did you read the code to see if there was an obvious way to extend what it does ?


这篇关于如何冻结网格视图中的多列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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