如果公共变量有一些值,如何隐藏dataGrid中的列? [英] How to hide column in dataGrid if public variable has some value?
本文介绍了如果公共变量有一些值,如何隐藏dataGrid中的列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
如果公共变量有一些值,如何隐藏dataGrid中的列?
how to hide column in dataGrid if public variable has some value?
推荐答案
DataGridColumn具有Visibility属性。 将其绑定到属性以隐藏/显示列。
The DataGridColumn has a Visibility property. Bind that to a property to hide/show the column.
这篇关于如果公共变量有一些值,如何隐藏dataGrid中的列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文