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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove Left, Right, Top, Bottom border of pdfgrid

Thread ID:

Created:

Updated:

Platform:

Replies:

118741 Apr 6,2015 06:03 PM UTC Apr 7,2015 01:12 PM UTC WinForms 1
loading
Tags: PDF
jb
Asked On April 6, 2015 06:03 PM UTC

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 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.


CONFIRMATION

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.

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

;