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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridNumericColumn text vertically center align

Thread ID:





118950 Apr 27,2015 03:06 PM UTC Apr 28,2015 01:14 PM UTC WinRT 1
Tags: SfDataGrid
Asked On April 27, 2015 03:06 PM UTC

I have a SfDataGrid with Text, Numeric, Combobox, Datetime and checkbox columns. Combobox and checkbox columns are centered aligned both vertically and horizontally. But for Text, Numeric columns TextAlignment="Center" works only horizontally. Is there anyway I can center align in both axes for text\numeric columns in all modes(readonly\edit). Also a side note, Datetime column on edit, center aligns the text in both axes. I am attaching some screen shots for visual difference. 

Attachment: SFDataGrid_alignment_1a4d36a4.zip

Muthukumar Kalyanasundaram [Syncfusion]
Replied On April 28, 2015 01:14 PM UTC

Hi Vasanth,

Thank you for usingSyncfusion products.

In readonly mode, the Text and Numeric column works horizontal only while setting TextAlignment as Center

We analyzed your query. If we set TextAlignment property as center, it will aligned the text horizontal only. So you can set theVerticalAlignmentproperty also forchanging the vertical alignment. Please refer the below code:



<!--Text column-->


<!--ComboBox Column-->


<!--Numeric Column-->


<!--DateTime Column-->

<syncfusion:GridDateTimeColumnMappingName="ShippedDate"VerticalAlignment="Center"TextAlignment="Center" />

<!--CheckBox Column-->



Please refer the attached sample.


In edit mode while setting TextAlignment as Center, the columns are not aligned as center

Weare able to reproduce the reported issueonour end. We have logged defect report regarding this query. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates,


Please let me know if you have any questions.


Muthukumar K


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon