Hi Micheal,
Thanks for contacting Syncfusion support.
We have analyzed your query and you can achieve your requirement by editing the style of PrintPageControl in SfDataGrid as like in the below code example.
To print SfDataGrid with custom style you have to set PrintSettings.AllowPrintStyles property as false.
Please refer the below code example.
XAML
<Application.Resources>
<Style TargetType="syncfusion:PrintPageControl">
<Setter Property="BorderThickness" Value="0"/>
</Style>
</Application.Resources> |
C#
private void Button_Click(object sender, RoutedEventArgs e)
{
Grid.PrintSettings = new PrintSettings();
Grid.PrintSettings.AllowPrintStyles = false;
Grid.Print();
} |
Please download sample from the below location.
Regards,
Srinivasan