question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataGrid clear all text on Ctrl + C, Version: 0.10.0-preview5

See original GitHub issue

When copy data with Ctrl + C all selected rows are emptied Data is copied to clipboard as expected

Version: 0.10.0-preview5

<DataGrid 
                    CanUserReorderColumns="True"
                    CanUserResizeColumns="True"
                    CanUserSortColumns="True"
                    GridLinesVisibility="All"
                    IsReadOnly="True"
                    ClipboardCopyMode="IncludeHeader"
                    Items="{Binding SlicerProperties}">

Before Copy: UVtools_2020-09-22_17-00-54

2 row copied UVtools_2020-09-22_17-01-02

Ctrl + A & Ctrl +C UVtools_2020-09-22_17-01-05

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timuniecommented, Mar 11, 2022

Sure

<DataGrid Items="{Binding MyItems}">
    <DataGrid.Columns>
        <DataGridTextColumn Binding="{Binding Title}"
                            ClipboardContentBinding="{Binding Title}"
                            Header="Title"  />
          [ ... ]
    </DataGrid.Columns>
</DataGrid>
0reactions
sn4k3commented, Mar 10, 2022

Hey @sn4k3 if you’re still looking for a solution, you can set ClipboardContentBinding and this will let the copy command work as expected.

Any sample arround that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ctrl + c in DataGridViewCell edit mode copies the whole row
So I am able to select text in an editable cell and enter ctrl-C to copy "just" the selected text. -OR- It's quite...
Read more >
Ctrl+A Ctrl+C (Cmd+A Cmd+C) does not copy text in preview
Press Ctrl A. Press Ctrl C. Try to paste text using Ctrl V. Expected result To ... Preview mode text copy does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found