【问题标题】:Is there another way to set the DataGrid column alignment?是否有另一种方法来设置 DataGrid 列对齐?
【发布时间】:2011-07-28 09:48:08
【问题描述】:

除了使用样式或模板列之外,是否有任何直接的方法来设置 DataGrid 列内容对齐?!必须有一个直接的方法,这是一个自然的要求!

【问题讨论】:

    标签: wpf datagrid alignment


    【解决方案1】:

    据我所知,没有。最少量的 XAML 将是创建左、中和右样式和模板,然后每次创建列时,设置 CellStyle。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-11
      • 1970-01-01
      • 2015-11-21
      • 2017-05-07
      • 1970-01-01
      相关资源
      最近更新 更多