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.

Remove Left, Right, Top, Bottom border of pdfgrid

Thread ID:





118741 Apr 6,2015 02:03 PM Apr 7,2015 09:12 AM Windows Forms 1
Tags: PDF
Asked On April 6, 2015 02:03 PM

i have a complicated pdfgrid and have need to removing the border of certain grid rows either top and bottom or bottom or top or left or right border of the grid row or cell.

i have tried setting the border/top as transparent etc but that does not solve issue

Abirami Selvan [Syncfusion]
Replied On April 7, 2015 09:12 AM

Hi Jb,


Thank you for using Syncfusion product.


We can remove the border for certain rows top or bottom or right or left side using Cells.Broders property. We can set transparent color to the pdf pen for the particular side border(top, bottom, right or left). please refer the below code snippet :


//Apply the transparency to remove the border colors for any side

pdfGrid.Rows[i].Cells[j].Style.Borders.Bottom = PdfPens.Transparent;


 pdfGrid.Rows[i].Cells[j].Style.Borders.Right = PdfPens.Transparent;


pdfGrid.Rows[i].Cells[j].Style.Borders.Left = PdfPens.Transparent;


pdfGrid.Rows[i].Cells[j].Style.Borders.Top = PdfPens.Transparent;


We have attached the sample to remove the grid row borders in below link :



Please try this and let us know if you have any further assistance .





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.