Unplanned
Last Updated: 30 Sep 2025 12:51 by Teddy
Teddy
Created on: 30 Sep 2025 12:51
Category: DataGrid
Type: Bug Report
1
DataGrid: NullReferenceException is thrown when measuring the cells container

Null reference exception occurs when measuring the cells container:

at Telerik.Maui.Controls.DataGrid.DataGridTextCellArranger.PrepareContainerForItemOverride(GridCellModel model)
   at Telerik.Maui.Controls.DataGrid.DataGridNumericalCellArranger.PrepareContainerForItemOverride(GridCellModel model)
   at Telerik.Maui.Controls.DataGrid.DataGridColumn.Telerik.Maui.Controls.DataGrid.IDataGridColumnDefinition.PrepareContainerForItem(GridCellModel model)
   at Telerik.Maui.Controls.DataGrid.CellsController`1.GenerateCellsForRow(IItemInfoNode rowModel, Int32 rowSlot)
   at Telerik.Maui.Controls.DataGrid.NodePool`2.GenerateModelsForInfos(IList`1 itemInfos, ModelGenerationContext modelGenerationContext, MeasureContext measureContext)
   at Telerik.Maui.Controls.DataGrid.NodePool`2.MeasureForward(MeasureContext& context)
   at Telerik.Maui.Controls.DataGrid.NodePool`2.MeasureVertically(RadSize availableSize, Double offset, Double verticalBuffer)
   at Telerik.Maui.Controls.DataGrid.NodePool`2.OnMeasure(RadSize availableSize, Double offset, Double verticalBuffer)
   at Telerik.Maui.Controls.DataGrid.GridModel.MeasureCells(RadSize availableSize)
   at Telerik.Maui.Controls.DataGrid.DataGridContentLayout.Measure(Double widthConstraint, Double heightConstraint)
   at Microsoft.Maui.Platform.MauiPanel.MeasureOverride(Size availableSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)

0 comments