dotnet / dotnet/winforms

Items disappear from the ListView when the user scrolls up/down

Open
#5,290 7 comments 1 reaction 0 assignees View on GitHub
:beetle: bug
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

**.NET Core Version:**
- 3.0

**Have you experienced this same bug with .NET Framework?:**
- No

**Repro steps:**
1. Create a ListView in **virtual mode** with 1 million items (or use `NET5` project from [VirtualListView.zip](https://github.com/dotnet/winforms/files/6848616/VirtualListView.zip)).
2. Add `Application.SetHighDpiMode(HighDpiMode.SystemAware)` line to `Program.cs`
3. Start scrolling up/down

**Actual behavior:**
Items disappear:

![5290](https://user-images.githubusercontent.com/23376742/126332912-d3faab2a-b2ec-48d6-b550-8e5be868635d.gif)

**Expected behavior:**
Items should be displayed

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.