WPF DataGrid last column width set "*" not work

CodingNinja 96 Reputation points
2021-10-03T10:50:19.2+00:00

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.

Developer technologies Windows Presentation Foundation
Developer technologies XAML
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.