Open
Description
Describe the bug
My grid in the video contains 3 rows and the number of columns expands fast (every half second). The first 4 columns are fixed.
DataGrid.mp4
Problem 1: Scrollbar not visible
- Despite the fact that I explicitly set the HorizontalScrollbarVisibility=Visible, the scrollbar appears on demand.
- It's actually not obvious where is the hit area for the Scrollbar to appear
Problem 2: Performance
- When I scrolled when there are ~1000 columns, the control is almost unusable.
Regression
No response
Reproducible in sample app?
- This bug can be reproduced in the sample app.
Steps to reproduce
1- I created a sample app to reproduce the bugs.
2- Open / Compile / Run
3- Let the grid has t1000
Expected behavior
- Scrollbars should be visible when explicitly visible
- I expect a DataGrid to support more than 1000 columns even if data are added every second
Screenshots
Video provided in the description[
Sample project to see the bug
Sample.zip
](url)
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
No response
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.1.4
Device form factor
Desktop
Nuget packages
Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2
Additional context
No response
Help us help you
No.