We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Printing Watermark in SfDataGrid

Is it possible to Add a Watermark in SfDatagrid. The Print Manager of SfDataGrid support this? 

3 Replies

EM Elavarasan M Syncfusion Team January 20, 2015 01:45 PM UTC

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]:


    <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">


                <RotateTransform Angle="45"/>





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.

Elavarasan M

DF Diego Fernando Urabayen January 20, 2015 04:05 PM UTC

Thank you for the solution. Implemented correctly.



Attachment: Captura_de_pantalla_20150120_a_las_13.03.34.png_1daf3738.zip

EM Elavarasan M Syncfusion Team January 21, 2015 04:31 AM UTC

Hi Diego Fernando,

Thank you for your update. Please let us know if you require further assistance on this.

Elavarasan M

Live Chat Icon For mobile
Up arrow icon