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

Remove Left, Right, Top, Bottom border of pdfgrid

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

1 Reply

AS Abirami Selvan Syncfusion Team April 7, 2015 01:12 PM UTC

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 :

http://www.syncfusion.com/downloads/support/directtrac/137404/PdfGridBorderSample-17458871.zip

 

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

 

Thanks,

Abirami.


Loader.
Up arrow icon