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.
Unfortunately, activation email could not send to your email. Please try again.

How do I right-align columns in a GridControl?

Thread ID:

Created:

Updated:

Platform:

Replies:

97802 Jan 10,2011 03:28 PM Jan 11,2011 07:15 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 10, 2011 03:28 PM

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


Administrator [Syncfusion]
Replied On January 10, 2011 05:19 PM

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

-TC


Christopher Issac Sunder K [Syncfusion]
Replied On January 11, 2011 07:15 AM

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.


CONFIRMATION

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.

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.

;