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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SdDataGrid DetailsView Export PDF (Details View Border Always Showing)

Thread ID:





146091 Jul 19,2019 08:01 AM UTC Jul 22,2019 01:26 PM UTC WinForms 1
Tags: SfDataGrid
Asked On July 19, 2019 08:01 AM UTC

I am exporting sfdatagrid master details view to pdf,
But details view border is always visible.even if all borders from grid are removed.
Details view row borders are removed but it shows inside a box.

Can You help me out with customizing details view while exporting to pdf. I was not able to find any event related to details view.

Thank You

Gowtham Gopalsamy [Syncfusion]
Replied On July 22, 2019 01:26 PM UTC

Hi Mahendra, 
Thank you for using Syncfusion controls. 
We have analyzed your query ,you can remove the DetailsViewGrid border by set the Border color as Transparent in CellExporting event. 
Please refer the below code example 
exportingOptions.CellExporting += OnCellExporting; 
private void OnCellExporting(object sender, DataGridCellPdfExportingEventArgs e) 
    if (e.Level > 0) 
        e.PdfGridCell.Style.Borders.All = new PdfPen(Color.Transparent); 
We have removed the DetailsViewGrid border. This is not your requirement, please let us know your exact requirement that will help us to provide the better solution. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon