如何禁用WPF移动/的ListView头的重新排序? [英] How to disable Moving/ReOrdering of ListView Header in WPF?
本文介绍了如何禁用WPF移动/的ListView头的重新排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在WPF ListView控件可以通过拖放重新排序列。
有没有什么办法来禁用它?
我希望一些WPF大师能帮助我。 :)
解决方案
< ListView.View>
< GridView的AllowsColumnReorder =FALSE>
......这里头........
< / GridView的>
< /ListView.View>
试试这个
The WPF ListView control allows to re-order of columns by drag and drop. Is there any way to disable it?
I hope some WPF guru can help me. :)
解决方案
<ListView.View>
<GridView AllowsColumnReorder="False">
......headers here........
</GridView>
</ListView.View>
Try this
这篇关于如何禁用WPF移动/的ListView头的重新排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文