Skip to content

UWP DataGrid.RowDetailsVisibilityMode.VisibleWhenSelected performance issue #2842

@bent-rasmussen

Description

@bent-rasmussen

I'm submitting a...

Bug report (I searched for similar issues and did not find one)

See reproduction of issue at this github bug repro:
DataGridRowDetailsPerfTest

Current behavior

Scrolling performance degrades dramatically when the DataGrid property RowDetailsVisibilityMode is set to VisibleWhenSelected. There is no issue when it is set to Collapsed or Visible. I have tested this with a relatively modest datagrid of 20,000 items, which should pose no issue with a UI virtualized datagrid.

datagridrowdetailsperftest

Expected behavior

Smooth scrolling performance regardless of which RowDetailsVisibilityMode is chosen.

Minimal reproduction of the problem with instructions

There is a minimal repro here:
DataGridRowDetailsPerfTest

Environment

Nuget Package(s):

  • Microsoft.NETCore.UniversalWindowsPlatform
  • Microsoft.Toolkit.Uwp
  • Microsoft.Toolkit.Uwp.UI
  • Microsoft.Toolkit.Uwp.Controls
  • Microsoft.Toolkit.Uwp.UI.Controls.DataGrid

Package Version(s):

  • Microsoft.NETCore.UniversalWindowsPlatform = 6.2.3
  • Microsoft.Toolkit.* = 5.1.0

Windows 10 Build Number:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • Insider Build (build number: )

App min and target version:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • Insider Build (xxxxx)

Device form factor:

  • Desktop
  • Mobile
  • Xbox
  • Surface Hub
  • IoT

Visual Studio

  • 2017 (version: Professional 15.9.7)
  • 2017 Preview (version: )

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataGrid 🔠Issues on DataGrid control

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions