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.
ADAdministrator Syncfusion Team April 22, 2005 02: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;