CodingNinja avatar image
0 Votes"
CodingNinja asked HuiLiu-MSFT edited

WPF DataGrid last column width set "*" not work

I have a DataGrid with 4 Columns in total, the first three columns are Auto in width and the last column is Star, but I don't know what changes were made and now the last column has become very narrow in width, I used VS hot reload, removed Star and set it again and the column width is normal, I guess the DataGrid has not gotten the correct width when rendering.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,@CodingNinja . After deleting Star and resetting, is the width of the first three columns Auto and the width of the last column Star? Has your problem been solved? If not, could you show the code of your DateGrid?

0 Votes 0 ·

0 Answers