开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜