in wpf how do i make a datagrid fit the window height

前端 未结 3 565
清歌不尽
清歌不尽 2020-12-15 05:48

I have a grid with 3 columns and 2 rows

        
            
            

        
3条回答
  •  悲哀的现实
    2020-12-15 06:09

    You have to define the column and row where the DataGrid is with *. You say it is on the lower left cell. The row is ok but your column there has Width="Auto".

    The AutoGenerateColumns=True gives a mess if Width="Auto".

提交回复
热议问题