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.

Cell text alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

24452 Feb 4,2005 12:28 AM Feb 4,2005 08:15 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 4, 2005 12:28 AM

Hi, How can i make the cell content right aligned when it is numerical and left aligned for alphabets. For a column with n rows how can this be achieved?

Administrator [Syncfusion]
Replied On February 4, 2005 08:15 AM

In a PrepareViewStyleInfo event handler you check the type e.Style.CellValue or check e.Style.CellValueType and based on this check you can then set e.Style.HorizontalAlignment. Stefan >Hi, >How can i make the cell content right aligned when it is numerical and left aligned for alphabets. > >For a column with n rows how can this be achieved?

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.

;