开发者

Copy doesn't work on DataGrid templated columns?

开发者 https://www.devze.com 2023-02-21 09:22 出处:网络
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 prope

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消