Last Updated:
09 Jul 2025 12:43
by ADMIN
DataGrid: [WinUI] [MacCatalyst] NullReferenceException is thrown when a column is resized and scrolled out of the viewport
When a column in the DataGrid is being resized and is subsequently scrolled out of the viewport, a NullReferenceException is thrown. This happens because the column's model is recycled while the resize operation is still in progress. As a result, the resize logic attempts to access a column from a recycled (and now null) model, leading to the exception.