WPF DataGrid - Why the extra column

前端 未结 4 527
轻奢々
轻奢々 2021-01-03 18:59

I have a WPF app that uses DataGrid to display some data. When I run the program there is an additional column as shown here:

4条回答
  •  半阙折子戏
    2021-01-03 19:40

    Well since its unused space, another way around will be use a weighted width rather than fixed one. You can use a hybrid approach as well wherein some are fixed and some are weighted, in that case ensure one is weighted (*) So in your code it will be :

    
            
            
            
            
    

提交回复
热议问题