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.
Up arrow icon