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.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
789 questions
{count} votes