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

Text Alignement in a gridControl

Thread ID:





43955 May 9,2006 04:10 PM UTC May 10,2006 03:49 AM UTC WinForms 1
Tags: GridControl
Pierre-Luc Boulet
Asked On May 9, 2006 04:10 PM UTC

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 10, 2006 03:49 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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