如何清除排序说明后清除wpf网格排序箭头 [英] How to remove wpf grid sort arrow after clearing sort descriptions
本文介绍了如何清除排序说明后清除wpf网格排序箭头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我点击网格标题对列进行排序,然后点击重置按钮,通过其集合视图清除排序说明。但是排序箭头图标仍然保存在标题中。如何删除它?
I click on a grid header to sort a column and then click a "Reset" button to clear the sort descriptions through its collection view. But the sort arrow icon still persists in the header. How to remove it?
推荐答案
简单的解决方案我可以想到的是
simple solution i can think of is
foreach (DataGridColumn column in DataGridView.Columns)
{
column.SortDirection = null;
}
这篇关于如何清除排序说明后清除wpf网格排序箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文