-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Describe the bug
DataGrid displays only 91 out of 100 rows and cannot scroll further. Even with a
correct Grid layout and virtualization disabled, the remaining rows are not visible.
Scrolling stops unexpectedly, and the remaining rows are never rendered or reachable.
To Reproduce
🧪 Steps to Reproduce
Create a collection containing 200 records.
Example:
for (int i = 1; i <= 200; i++)
Items.Add(new Item { No = i, Name = $"Item {i}" });
Bind this collection to an Avalonia DataGrid:
Run the application and scroll the DataGrid in the UI.
🧾 Actual Result
Only about 91 records are displayed.
Scrolling stops and the remaining records are not visible.
✅ Expected Result
All 200 records should be visible and scrollable in the DataGrid.
Expected behavior
🧪 Steps to Reproduce
Create a collection containing 100 records.
Example:
for (int i = 1; i <= 100; i++)
Items.Add(new Item { No = i, Name = $"Item {i}" });
Bind this collection to an Avalonia DataGrid:
Run the application and scroll the DataGrid in the UI.
🧾 Actual Result
Only about 91 records are displayed.
Scrolling stops and the remaining records are not visible.
✅ Expected Result
All 200 records should be visible and scrollable in the DataGrid.
Avalonia version
11.3.7
OS
Windows
Additional context
🧪 Steps to Reproduce
Create a collection containing 200 records.
Example:
for (int i = 1; i <= 200; i++)
Items.Add(new Item { No = i, Name = $"Item {i}" });
Bind this collection to an Avalonia DataGrid:
Run the application and scroll the DataGrid in the UI.
🧾 Actual Result
Only about 91 records are displayed.
Scrolling stops and the remaining records are not visible.
✅ Expected Result
All 100 records should be visible and scrollable in the DataGrid.