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. Image for the cookie policy date

Text Alignment change after scrollung

Hello,

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,
Guillaume

Attachment: BadAligment_6cf5889d.7z

1 Reply

HN Harikrishnan N Syncfusion Team 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.

http://www.syncfusion.com/forums/121657/essential-studio-2015-volume-4-final-release-v13-4-0-53-is-available-for-download 

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;
}


Regards,
Harikrishnan


Loader.
Up arrow icon