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
150
Export to excel : Template column
posted

I have a template column displaying the button with color and text on it. How do I export to excel? At least the text.


Template:

<Style x:Key="CreditAlertButtonTemplate" TargetType="{x:Type igDP:CellValuePresenter}">

<Setter Property="Template">

<Setter.Value>

<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">

<Button x:Name="CreditAlertButton" Content="{Binding DataItem.CreditAlert, Converter={StaticResource CreditAlertToContextConverter}}" Style="{StaticResource CircleButton}" Width="20" Height="auto"

Background ="{Binding DataItem.CreditAlert, Converter={StaticResource CreditAlertToColorConverter}}"

</ControlTemplate>

</Setter.Value>

</Setter>

</Style>


Please advise.

Parents
  • 2151
    Offline posted

    Hello raj,

     

    Thank you for your post. I am attaching a sample application which shows how to export xamDataGrid with templated field to MS Excel format.

    Please do not hesitate to let me know if you have any further questions on this matter.

     

    Sincerely,

    Radko Kolev

    Infragistics Inc.

    www.infragistics.com/support

    XDGExportToExcelTemplatedField.zip
Reply Children
No Data