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
close icon

How do I right-align columns in a GridControl?

I'm hoping for a quick answer to this. I have a simple Syncfusion GridControl. Most of the columns show numbers. By default, all numbers are left justified. I'd like them to be right justified. I've used this command (in VB):

MyGrid.ColStyles(4).TextAlign = GridTextAlign.Right

but it doesn't seem to do anything. What is the correct way to align columns?

-TC


2 Replies

AD Administrator Syncfusion Team January 10, 2011 10:19 PM UTC

I figured it out. I need to use the property called HorizontalAlignment, not TextAlign.

-TC



CI Christopher Issac Sunder K Syncfusion Team January 11, 2011 12:15 PM UTC

Hi TC,

Thanks for the update.

Glad to hear the issue is resolved.

Please let us know if you need any other clarifications.

Regards,
Christo.


Loader.
Live Chat Icon For mobile
Up arrow icon