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

align right data in the column

Thread ID:

Created:

Updated:

Platform:

Replies:

42904 Apr 10,2006 10:22 AM UTC Apr 10,2006 11:35 AM UTC WinForms 2
loading
Tags: GridControl
Fady Sayegh
Asked On April 10, 2006 10:22 AM UTC

hi to all, i am using the GridControl and i am trying to align right the data in all the cells of a column. i tried the above line of code but it doesn''t work. gridControl1.ColStyles[4].TextAlign = GridTextAlign.Right; what did i miss ? best regards and thanks in advance fady

Administrator [Syncfusion]
Replied On April 10, 2006 11:15 AM UTC

Hi Fady, The TextAlign property is commonly used to align text left/ right of button elements(which is typical for combo boxes). Use the HorizontalAlignment property to set the alignment of the text in a cell. this.gridControl1.ColStyles[4].HorizontalAlignment = GridHorizontalAlignment.Right; Regards, Calvin.

Administrator [Syncfusion]
Replied On April 10, 2006 11:35 AM UTC

thanks calvin, it works fady >hi to all, > >i am using the GridControl and i am trying to align right the data in all the cells of a column. > >i tried the above line of code but it doesn''t work. >gridControl1.ColStyles[4].TextAlign = GridTextAlign.Right; > >what did i miss ? > >best regards and thanks in advance > >fady

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

;