BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Diego Fernando,
Thank you for using Syncfusion products.
We have analyzed your query and currently PrintManagerBase in SfDataGrid does not have direct support to add the Watermark. You can achieve your requirement by using PrintPageHeaderTemplate.
Please refer the below code snippet for customizing the header template.
Code Snippet [Xaml]:
<Window.Resources> <DataTemplate x:Key="watermark"> <TextBlock Text="Syncfusion" Foreground="Blue" FontSize="40" Opacity="0.40" Height="70" Width="950" Padding="400,0,0,0" TextAlignment="Left" MaxWidth="950" MaxHeight="150" VerticalAlignment="Center"> <TextBlock.RenderTransform> <RotateTransform Angle="45"/> </TextBlock.RenderTransform> </TextBlock> </DataTemplate>
</Window.Resources> |
Code Snippet [C#]:
datagrid.PrintSettings.PrintPageHeaderTemplate = App.Current.MainWindow.FindResource("watermark") as DataTemplate; datagrid.PrintSettings.PrintPageHeaderHeight = 100; |
In the above code snippet, the customized header template (watermark) is assigned to PrintPageHeaderTemplate. You can rotate the header template to display the watermark in various alignments. If you are using the watermark, then the default header template cannot be customized in SfDataGrid.
Please find the sample from following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/117990/SfDataGridSample891521599.zip
Please let us know if you have any queries.
Thanks,
Elavarasan M
Hi Diego Fernando,
Thank you for your update. Please let us know if you require further assistance on this.
Thanks,
Elavarasan M