How Do I Hide wpf datagrid row selector

前端 未结 4 1754
陌清茗
陌清茗 2020-12-08 12:36

I\'m using the WPF DataGrid control to show some details and a select button, and I don\'t need the gray selector column down the left-hand side. It\'s also ruining the beau

4条回答
  •  借酒劲吻你
    2020-12-08 13:10

    Had the same problem.

    Looks like the RowHeaderWidth is not supported in XAML BUT you can specify in the code behind right after the bind and it takes out that crappy selector column.

    grdName.RowHeaderWidth = 0

提交回复
热议问题