Grouping grid - text alignment

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

1 Reply

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

Loader.
Up arrow icon