Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Copy from excel and paste into WPF DatagridTempate column

$
0
0
I have a WPF DataGrid with DataGridTemplateColumns, when I select rows from excel and use Ctrl+C, and then in DataGrid Ctrl+V, no data is pasted. If I change columns to DataGridTextColumn then copy and paste works fine. What can I do to make work copy & paste with DataGridTemplateColumn? Also when I set ClipboardContentBinding="{Binding FirstName}" for the template column, Null Refrence exception is thrown. 

Can anyone help me please?

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>