Text Alignement in a gridControl

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Up arrow icon