Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Wraps text and export to excel
posted

Hello:

I have this XAML code:

<igDP:FieldSettings AllowResize="True" CellValuePresenterStyle="{StaticResource ResourceKey=CellValue}">
           <igDP:FieldSettings.EditorStyle>
               <Style TargetType="{x:Type igEditors:XamTextEditor}">
                      <Setter Property="TextWrapping" Value="Wrap"/>
                </Style>
             </igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>

This code makes that text wraps on the grid, but when I have exported the XamDataGrid to Excel, the text haven't wraps on Excel.

Any idea what it happens?

Thank you very much,

Best Regards

Parents
  • 138253
    Offline posted

    Hello Noe,

     

    Thank you for your post. I have been looking into it and I have created a sample project for you with the functionality you want. Basically I created ResourceDictionary with FieldSettings instance and set its ExcelCellFormatSettings. I also added other Setting, not only text Wrapping, but you can remove them if you want. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGridExportSettings.zip
Reply Children