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.
Hello raj,
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.
Sincerely,
Radko Kolev
Infragistics Inc.
www.infragistics.com/support
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.