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.
Unfortunately, activation email could not send to your email. Please try again.

GridNumericColumn horizontal alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

121754 Jan 21,2016 11:07 AM Jan 21,2016 11:23 AM WPF 1
loading
Tags: SfDataGrid
Silvio
Asked On January 21, 2016 11:07 AM

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 ?



Sivakumar R [Syncfusion]
Replied On January 21, 2016 11:23 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;