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.
Unfortunately, activation email could not send to your email. Please try again.

Printing Watermark in SfDataGrid

Thread ID:





117990 Jan 16,2015 06:35 PM Jan 20,2015 11:32 PM WPF 3
Tags: SfDataGrid
Diego Fernando Urabayen
Asked On January 16, 2015 06:35 PM

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

Elavarasan M [Syncfusion]
Replied On January 20, 2015 08:45 AM

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

Diego Fernando Urabayen
Replied On January 20, 2015 11:05 AM

Thank you for the solution. Implemented correctly.



Attachment: Captura_de_pantalla_20150120_a_las_13.03.34.png_1daf3738.zip

Elavarasan M [Syncfusion]
Replied On January 20, 2015 11:31 PM

Hi Diego Fernando,

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

Elavarasan M


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.