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

Grouping grid - text alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

28037 Apr 22,2005 05:41 AM UTC Apr 22,2005 07:52 AM UTC WinForms 1
loading
Tags: GridControl
Richard
Asked On April 22, 2005 05:41 AM UTC

Hi, I am trying to right align the text in 1 column on my grouping grid using the following line this.grdGrpProperties.BaseStyles["Value"].StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Right; This however does not work, and I get an error. How can I do this? I do not want this to affect the header cell, and I do not want to do this in prepareviewstyleinfo. Thanks

Administrator [Syncfusion]
Replied On April 22, 2005 07:52 AM UTC

One way to get at the style of a column is through the Appearance property in the ColumnDescriptor for the column. this.gridGroupingControl1.TableDescriptor.Columns["Col1Name"].Appearance.AnyRecordFieldCell.HorizontalAlignment = GridHorizontalAlignment.Right;

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

;