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

Cell text alignment

Hi, How can i make the cell content right aligned when it is numerical and left aligned for alphabets. For a column with n rows how can this be achieved?

1 Reply

AD Administrator Syncfusion Team February 4, 2005 01:15 PM UTC

In a PrepareViewStyleInfo event handler you check the type e.Style.CellValue or check e.Style.CellValueType and based on this check you can then set e.Style.HorizontalAlignment. Stefan >Hi, >How can i make the cell content right aligned when it is numerical and left aligned for alphabets. > >For a column with n rows how can this be achieved?

Loader.
Live Chat Icon For mobile
Up arrow icon