Copy doesn't work on DataGrid templated columns?
When working with templated column in W开发者_如何学PythonPF datagrid, you cann't copy cell content anymore, does anyone knows how this can be solved?
You need to set the ClipboardContentBinding
property to the desired property in the row item, see the following code:
<DataGrid>
<DataGrid.Columns>
<DataGridTemplateColumn ClipboardContentBinding="{Binding YouProperty}">
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
精彩评论