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

PdfLightTable border color


I want to write a table in a pdf file. I am using the PdfLightTable class to write the data, and I've set the styles for the header and cells using the PdfCellStyle class:

   var headerStyle = new PdfCellStyle
                BackgroundBrush = new PdfSolidBrush(new PdfColor(new Color()) {R = 109, G = 175,  B = 61}),
                BorderPen = new PdfPen(new PdfColor(new Color()){ R = 109, G = 175,   B = 61 })
    var defaultStyle = new PdfCellStyle
                TextBrush = PdfBrushes.Black,
                BorderPen =PdfPen(new PdfColor(new Color()){ R = 109, G = 175,   B = 61 })

  var pdfLightTable = new PdfLightTable
                Style =
                    BorderPen= new PdfPen(new PdfColor(new Color()){ R = 109, G = 175,   B = 61 })

But the table is rendered without the borders or the header bakcground color. 



1 Reply

AS Abirami Selvan Syncfusion Team March 2, 2016 07:45 AM UTC

Hi Catalina,

Thank you for contacting Syncfusion support.

We are able to reproduce the issue“ Border and background color is not persevered correctly in PDF light table” and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates


Please let me know if you have any questions.


Live Chat Icon For mobile
Up arrow icon