WPF DataGrid, Copy to Clipboard after Ctrl+C,OnCopyingRowClipboardContent

前端 未结 2 1512
走了就别回头了
走了就别回头了 2021-02-13 05:27

For WPF, Data Grid I am trying to copy to clipboard my custom text data, after Ctrl+C Diverse attempts to use override OnCopyingRowClipboardContent(DataGridRo

2条回答
  •  一生所求
    2021-02-13 06:25

    the correct way is add on XAML grid this property

    ClipboardCopyMode="ExcludeHeader"
    

    and for each property you want copy add this XAML

     
                                                            
提交回复
热议问题