wpfdatagrid - WPF Toolkit Datagrid Copying Grid -


i'm using datagrid wpf toolkit 3.5.

i have need textwrap 1 of columns in grid have embedded textblock in column.

the issue have when copy grids content excel (ctrl a, ctrl c) column blank.

any on resolving appreciated. below xaml grid.

<tk:datagrid name="dgdatagrid" margin="3" autogeneratecolumns="false" headersvisibility="all"                           clipboardcopymode="includeheader" snapstodevicepixels="true"                           canuseraddrows="false" canuserdeleterows="false" isreadonly="true"                          selectionmode="extended" selectionunit="cell">   <tk:datagrid.columns>     <tk:datagridtextcolumn binding="{binding id}" header="message id" visibility="hidden" fontweight="black" />     <tk:datagridtextcolumn binding="{binding userinitials}" header="user" width="auto" />     <tk:datagridtextcolumn binding="{binding entrydate}" header="time stamp" width="auto" />     <tk:datagridtemplatecolumn header="message" width="*">       <tk:datagridtemplatecolumn.celltemplate>         <datatemplate>           <textblock margin="0" text="{binding message}" textwrapping="wrap"/>         </datatemplate>       </tk:datagridtemplatecolumn.celltemplate>     </tk:datagridtemplatecolumn>   </tk:datagrid.columns> </tk:datagrid> 

set clipboardcontentbinding property on datagridtemplatecolumn.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -