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

SdDataGrid DetailsView Export PDF (Details View Border Always Showing)

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

1 Reply

GG Gowtham Gopalsamy Syncfusion Team 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. 

Live Chat Icon For mobile
Up arrow icon