Skip to content

DataGrid does not display all rows #193

@samyraj19

Description

@samyraj19

Describe the bug

DataGrid displays only 91 out of 100 rows and cannot scroll further. Even with a

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions