【问题标题】:What would happen if the AutoGenerateColumns property/attribute of the DataGrid is set to True. How would this affect data binding?如果 DataGrid 的 AutoGenerateColumns 属性/属性设置为 True,会发生什么情况。这将如何影响数据绑定?
【发布时间】:2019-03-11 16:32:07
【问题描述】:

如果AutoGenerateColumns 属性/属性为 DataGrid 设置为 true?

这将如何影响数据绑定?

【问题讨论】:

    标签: wpf binding datagrid


    【解决方案1】:

    将 AutoGenerateColumns 设置为 true 将允许网格显示 ItemsSource 中的所有列。 AutoGenerateColumns 为 false 将仅显示 DataGrid 列模板中提及的

    【讨论】:

    • 不客气。如果满足您的要求,请标记为答案,如果对您有帮助,请标记为答案。
    猜你喜欢
    • 2011-09-17
    • 1970-01-01
    • 2020-02-17
    • 2021-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-10
    • 2012-05-15
    相关资源
    最近更新 更多