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

Text Alignment change after scrollung

Thread ID:





121669 Jan 14,2016 08:06 PM UTC Jan 15,2016 11:08 AM UTC Xamarin.Android 1
Tags: SfDataGrid
Guillaume Levasseur
Asked On January 14, 2016 08:06 PM UTC


I use auto generation of columns and I have a problem with text alignment in cells.

At first, the text is center aligned, but after scrolling, it moves to the left. See screenshots in attachment. 

The first column is frozen.  I tried to use TextAlignment = GravityFlags.Center but it did not solve the issue.

Is there a way to prevent the text from aligning to the left?

Thank you,

Attachment: BadAligment_6cf5889d.7z

Harikrishnan N [Syncfusion]
Replied On January 15, 2016 11:08 AM UTC

Hi Guillaume,

We are able to reproduce the issue in our side. However, this issue has already been fixed in our latest release which is available for download from the following link.


Otherwise, if you wish to get this issue fixed in your version itself, then you can set the LoadUIView for the grid columns as true by handling the SfDataGrid.AutoGeneratingColumn event like the following one.

sfGrid.AutoGeneratingColumn += sfGrid_AutoGeneratingColumn;

private void sfGrid_AutoGeneratingColumn(object sender, AutoGeneratingColumnArgs e)
    e.Column.LoadUIView = true;



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