AD
Administrator
Syncfusion Team
September 21, 2006 04:49 AM UTC
Hi James,
Use GridColumnDescriptor.Appearance to change the alignment of the particular column. Below is a code snippet to change appearance of the column in a grid.
//For Main Table
this.grid.TableDescriptor.Columns["ColName"].Appearance.GroupCaptionSummaryCell.HorizontalAlignment = GridHorizontalAlignment.Center;
this.grid.TableDescriptor.Columns["ColName"].Appearance.GroupCaptionCell.HorizontalAlignment = GridHorizontalAlignment.Left;
//For any table....
GridTableDescriptor gd = this.grid.GetTableDescriptor("MyTable"); //Code
gd.Columns["ColName"].Appearance.GroupCaptionSummaryCell.HorizontalAlignment = GridHorizontalAlignment.Center;
gd.Columns["ColName"].Appearance.GroupCaptionCell.HorizontalAlignment = GridHorizontalAlignment.Left;
Thanks,
Haneef