Skip to content

DataGrid is quite slow, takes ~1s to display 3 tables with 20 rows and 8 Columns #4925

Open
@Trolldemorted

Description

@Trolldemorted

Describe the bug

A simple demo app with a page that has 3 DataGrids with 20 rows and 8 columns takes ~1s to display, with 600ms going into layouting. It might be that I am doing something completely wrong, but I couldn't find a way to bring things up to speeds where users wouldn't notice the blocked UI thread.

Are 160 elements too many for DataGrid?

Regression

No response

Reproducible in sample app?

  • This bug can be reproduced in the sample app.

Steps to reproduce

- `git clone [email protected]:Trolldemorted/WinUI3DataGridTest.git`
- start with profiler
- click on the button to navigate to the test page

Expected behavior

New page renders quickly

Screenshots

grafik

grafik

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

22H2 (Build 19045.3324)

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

17.6.4

Device form factor

Desktop

Nuget packages

CommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.2
Microsoft.WindowsAppSDK1.3.230724000
Microsoft.Windows.SDK.BuildTools 10.0.22621.756

Additional context

No response

Help us help you

No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataGrid 🔠Issues on DataGrid controlbug 🐛An unexpected issue that highlights incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions