Dear all,
I create an application using WPF (MVVM) along with Telerik UI for WPF. I got into a problem with exporting gridview to excel using GridView's export method.
Simply saying, all column headers that contain custom header show a type name instead of Header.Text:
Is there a solution for this? Maybe there is another approach since I use custom .Header section because of Business wants to have the headers wrapped and setting Wrap in GridViewComboBoxColumn seems not working.
Regards
Tom
I create an application using WPF (MVVM) along with Telerik UI for WPF. I got into a problem with exporting gridview to excel using GridView's export method.
Simply saying, all column headers that contain custom header show a type name instead of Header.Text:
<
t:GridViewComboBoxColumn
Name
=
"InterestAlgorithmColumn"
ItemsSourceBinding
=
"{Binding Source={StaticResource InterestAlgorithmsViewSource},UpdateSourceTrigger=PropertyChanged}"
DataMemberBinding
=
"{Binding InvestmentAlgorithmCode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
DisplayMemberPath
=
"AlgorithmName"
SelectedValueMemberPath
=
"AlgorithmCode"
IsReadOnly
=
"True"
>
<
t:GridViewComboBoxColumn.Header
>
<
TextBlock
Text
=
"Algorithm Name"
TextWrapping
=
"Wrap"
Width
=
"100"
/>
</
t:GridViewComboBoxColumn.Header
>
</
t:GridViewComboBoxColumn
>
Is there a solution for this? Maybe there is another approach since I use custom .Header section because of Business wants to have the headers wrapped and setting Wrap in GridViewComboBoxColumn seems not working.
Regards
Tom