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.

Grouping grid - text alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

28037 Apr 22,2005 01:41 AM Apr 22,2005 03:52 AM Windows Forms 1
loading
Tags: GridControl
Richard
Asked On April 22, 2005 01:41 AM

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 03:52 AM

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.

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.

;