HI,
I'm following your examples to customize Header for SfDatagrid printing.
In the XAML I have this code:
<Application.Resources>
<DataTemplate x:Key="PageHeaderTempalte">
<Grid Background="Gray">
<TextBlock Text="{Binding ReportTitle}"
FontSize="18"
FontWeight="Bold"
Foreground="White"
HorizontalAlignment="Center"/>
</Grid>
</DataTemplate>
</Application.Resources>
where "ReportTitle" is a string property that supplies the report title to be set for the report that's available on my ViewModel object.
But, how can I set the DataContext for the PrintPreview window in order to have this binding work ?
Best regards.