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.
Up arrow icon