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.

Text Alignement in a gridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

43955 May 9,2006 12:10 PM May 9,2006 11:49 PM Windows Forms 1
loading
Tags: GridControl
Pierre-Luc Boulet
Asked On May 9, 2006 12:10 PM

Hi, I''m using a gridControl in which I have 4 rows of column headers with different coveredranges within them, in some of these columns where I need to display money amounts, I need the text to be aligned to the right, so I used : Me.gridControl1.ColStyles(1).TextAlign = GridTextAlign.Right but it''s not working, can you please help out, thanks Pierre-Luc

Administrator [Syncfusion]
Replied On May 9, 2006 11:49 PM

Hi Pierre, Please try this code to align the text in a cell.Here is a code snippet. //For a cell Me.grid[1,1].HorizontalAlignment = GridHorizontalAlignment.Right //For a column Me.grid.ColStyles[1].HorizontalAlignment = GridHorizontalAlignment.Right Please let me know if this helps. Best Regards, Haneef

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.

;