dotnet / dotnet/winforms

When coping data from DataGridView, there should no longer apply blank unselected lines onto the clipboard

Open
#3,021 0 comments 0 reactions 0 assignees View on GitHub
design-discussion enhancement
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

* .NET Core Version: .NET SDK 5.0.100-preview.3.20180.10

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

**Problem description:**
When coping data from DataGridView, blank unselected lines were applied onto the clipboard.

**Actual behavior:**
Unselected cells in these rows or columns are copied as blank placeholders to the Clipboard.

**Expected behavior:**
There should no longer applies blank unselected lines onto the clipboard.

**Minimal repro:**
1. Create a .NET Core winforms application.
2. Add a DataGridView with some columns to the form designer and run the app.
3. Add some data to the rows of DataGridView.
4. Select and copy the first and third rows, then paste them to a notepad.

**App:** [SampleApp.zip](https://github.com/dotnet/winforms/files/4406524/SampleApp.zip)

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.