GridNumericColumn horizontal alignment

HI,

is it possible to set the HorizontalAlignment of the GridNumericColumn column ?

By default GridTextColumn seems to have Left alignment, while HorizontalAlignment  seems to have rigth horizontal alignment.
If you have in a datagrid some text columns mixed with some numeric ones it looks not very nice.
I would like to set the horizontal alignment of numeric columns to left as Text ones, but I'm not able to find a suitable property to do it.
Can you help me ?



1 Reply

SR Sivakumar R Syncfusion Team January 21, 2016 04:23 PM UTC

Hi Silvio,

You can achieve your requirement by setting GridNumericColumn.TextAlignment to Left.

<syncfusion:GridNumericColumn HeaderText="Quantity"

                                MappingName="UnitPrice"

                                TextAlignment="Left">
</syncfusion:GridNumericColumn>


Thanks,
Sivakumar

Loader.
Up arrow icon