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

align text in pdf grid cell

Is there a way to align certain text at top of the cell and certain text at the bottom of a cell?

3 Replies

AS Abirami Selvan Syncfusion Team June 1, 2015 05:57 AM UTC

Hi Jb,

Thank you for using syncfusion product.

We don’t have native support to align the certain texts at top and bottom of the grid cell. We have  logged this feature in our data base. It can be tracked through our following Features Management System:

However, We have created the workaround solution in below link :

Please try this and let us know if it suits your requirement.


EW Ewen Wallace January 9, 2017 10:58 PM UTC

This worked for me...

PdfStringFormat centredText = new PdfStringFormat()
                                              LineAlignment = PdfVerticalAlignment.Middle,
                                              Alignment =  PdfTextAlignment.Center


thisNumberRow.Cells[digit].StringFormat = centredText;

CM Chinnu Muniyappan Syncfusion Team January 10, 2017 05:50 AM UTC

Hi Ewen, 
Thank you for your update, we will publish a KB article to achieve this query. 

Live Chat Icon For mobile
Up arrow icon