代码之家  ›  专栏  ›  技术社区  ›  Kryptonit364

在DataGrid中隐藏调整大小和选择列

  •  0
  • Kryptonit364  · 技术社区  · 2 年前

    有没有办法隐藏resize&当我在中添加一些数据时,选择列 DataGrid 是的 ItemSource ?

    A DataGrid without row selectors and a DataGrid with row selectors on the left.

    1 回复  |  直到 2 年前
        1
  •  1
  •   thatguy    2 年前

    这是行选择器列,可以使用 HeadersVisibility 所有物

    <DataGrid ... HeadersVisibility="Column">
    

    价值 Column 显示所有列标题,但隐藏行选择器,请参见可能的值 here .