You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying a filter and changing the items source, the TreeDataGrid throws an exception because it's accessing an index out of range in the HierarchicalRow.cs, member _rows:
System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowArgumentOutOfRange_IndexException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Avalonia.Controls.Models.TreeDataGrid.HierarchicalRows`1.System.Collections.Generic.IReadOnlyList<Avalonia.Controls.Models.TreeDataGrid.IRow>.get_Item(Int32 index) in C:\wks\code\01plastic\test\avalonia-test\Avalonia.Controls.TreeDataGrid\Models\TreeDataGrid\HierarchicalRows.cs:line 36
Avalonia.Controls.TreeDataGrid.dll!Avalonia.Controls.Models.TreeDataGrid.HierarchicalRows<Codice.Utils.ITreeViewNode>.System.Collections.Generic.IReadOnlyList<Avalonia.Controls.Models.TreeDataGrid.IRow>.get_Item(int index) Line 36 Avalonia.Controls.TreeDataGrid.dll!Avalonia.Controls.Primitives.TreeDataGridPresenterBase<Avalonia.Controls.Models.TreeDataGrid.IRow>.GetRecycledOrCreateElement(int index) Line 332 C#
Avalonia.Controls.TreeDataGrid.dll!Avalonia.Controls.Primitives.TreeDataGridPresenterBase<Avalonia.Controls.Models.TreeDataGrid.IRow>.GetOrCreateElement(int index) Line 306 C#
Avalonia.Controls.TreeDataGrid.dll!Avalonia.Controls.Primitives.TreeDataGridPresenterBase<Avalonia.Controls.Models.TreeDataGrid.IRow>.GenerateElements(Avalonia.Size availableSize, ref Avalonia.Controls.Primitives.TreeDataGridPresenterBase<Avalonia.Controls.Models.TreeDataGrid.IRow>.MeasureViewport viewport) Line 206 C#
Avalonia.Controls.TreeDataGrid.dll!Avalonia.Controls.Primitives.TreeDataGridPresenterBase<Avalonia.Controls.Models.TreeDataGrid.IRow>.MeasureOverride(Avalonia.Size availableSize) Line 177 C#
Avalonia.Controls.TreeDataGrid.dll!Avalonia.Controls.Primitives.TreeDataGridRowsPresenter.MeasureOverride(Avalonia.Size availableSize) Line 89 C#
[External Code]
plastic.dll!PlasticAvalonia.Program.Main(string[] args) Line 35 C#
When applying a filter and changing the items source, the TreeDataGrid throws an exception because it's accessing an index out of range in the
HierarchicalRow.cs
, member_rows
:Checkout the following video to get more details about the issue here:
https://www.loom.com/share/b5d3f3dab8e844cda3edcb3725be9e78
The text was updated successfully, but these errors were encountered: