Trying to add padding in a PdfGridCell with background image property

Is it possible to add cell padding in a PdfGridCell at the same time as using the BackgroundImage property? The padding is working correctly when using text, but as soon as I use the BackgroundImage, the cell have no padding whatsoever. Here's the code snippet:

PdfPaddings cellPadding = new PdfPaddings();
                                             cellPadding.All = 3;

PdfBitmap pBmp = new PdfBitmap(img);
                     cell.Style.BackgroundImage = pBmp;
                     cell.Value = "";
                     cell.Style.CellPadding = cellPadding;

1 Reply

SK Sasi Kumar Sekar Syncfusion Team April 10, 2018 12:24 PM UTC

Hi Sébastien, 
 
Thank you for contacting Syncfusion. 
 
We confirmed that the issue with “Cellpadding is not applied to the background image of PdfGridCell” is a defect and we logged defect report for this issue and the fix for the issue will be included in volume-1 Sp2 release expected to be out by end of April 2018. 
 
Regards,            
Sasi Kumar S. 


Loader.
Up arrow icon