【发布时间】:2012-08-15 19:24:17
【问题描述】:
DataGrid 可以动态屏蔽要显示的列吗?
当前设置
DataGrid Collection<Customer>
-
Customer类型定义了大约 100 个不同的字段。 - 不同的视图需要显示相同
Collection<Customer>的不同列集(大约100 列中的20 列),以某种方式动态选择。
是否有动态屏蔽将在DataGrid 中显示为列的字段的选项?理想情况下,我想使用 Infragistics 的xamDataGrid,但任何DataGrid 的解决方案都是一个很好的起点。
还有其他类似的questions,但它们处理列过滤或可变行数。
【问题讨论】:
标签: wpf data-binding wpfdatagrid infragistics xamdatagrid