Remove the blank column in a WPF DataGrid

后端 未结 2 1981
忘掉有多难
忘掉有多难 2021-02-07 05:31

I use a DataSet to populate a DataGrid in WPF (C#). The result is:

\"enter

I want

2条回答
  •  春和景丽
    2021-02-07 06:11

    Avoid setting static Height and Width.

    Use ColumnWidth="*" to share the space between your DataGridColumns

    
    

提交回复
热议问题