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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I right-align columns in a GridControl?

Thread ID:

Created:

Updated:

Platform:

Replies:

97802 Jan 10,2011 08:28 PM UTC Jan 11,2011 12:15 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 10, 2011 08:28 PM UTC

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 10:19 PM UTC

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 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.


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.

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

;