Unplanned
Last Updated: 19 Mar 2026 11:13 by Martin Ivanov
Martin Ivanov
Created on: 19 Mar 2026 11:13
Category: DataGrid
Type: Bug Report
11
DataGrid: NullReferenceException when start editing cell in a scenario with frozen columns

NullReferenceException is thrown when you click a non-frozen cell to start the row edit and RadDataGrid has frozen columns. To reproduce this, the UserEditMode should be set to Inline and at least one of the frozen columns should be read-only (CanUserEdit = False). 

The stacktrace of the exception is:

Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.XamlGridEditCellGenerator.GenerateContainerForItem(Telerik.UI.Xaml.Controls.Grid.CellGenerationContext info, object containerType) Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.CellEditorModelGenerator.GenerateContainerForItem(Telerik.UI.Xaml.Controls.Grid.CellGenerationContext context, object containerType)   Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.ItemModelGenerator<Telerik.UI.Xaml.Controls.Grid.GridCellEditorModel, Telerik.UI.Xaml.Controls.Grid.CellGenerationContext>.GenerateContainer(Telerik.UI.Xaml.Controls.Grid.CellGenerationContext context) Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.CellsController<Telerik.UI.Xaml.Controls.Grid.GridCellEditorModel>.GetCellDecorator(Telerik.UI.Xaml.Controls.Grid.IItemInfoNode parentRow, Telerik.Data.Core.Layouts.ItemInfo columnItemInfo, int rowLine, int columnLine)
Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.CellsController<Telerik.UI.Xaml.Controls.Grid.GridCellEditorModel>.GenerateCellsForRow(Telerik.UI.Xaml.Controls.Grid.IItemInfoNode rowDecorator, int rowSlot)
Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.Model.GridModel.GenerateCellsForEditRow(int rowSlot, double largestRowElementWidth, Telerik.UI.Xaml.Controls.Grid.IItemInfoNode rowDecorator) Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.Model.GridModel.Telerik.UI.Xaml.Controls.Grid.ITable.GenerateCellsForRow(int rowSlot, double largestRowElementHeight, Telerik.UI.Xaml.Controls.Grid.IItemInfoNode rowDecorator) Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.EditRowPool.UpdateEditRow(Telerik.Data.Core.Layouts.ItemInfo info, Windows.Foundation.Point startPosition, bool hasFrozenColumns) 
  Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.Model.GridModel.UpdateEditRow() Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.Model.GridModel.ArrangeCells(Windows.Foundation.Size finalSize)   Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.RadDataGrid.OnCellsPanelArrange(Windows.Foundation.Size finalSize) Telerik.WinUI.Controls.dll!Telerik.UI.Xaml.Controls.Grid.Primitives.DataGridCellsPanel.ArrangeOverride(Windows.Foundation.Size finalSize)

0 comments