JJ
Jisha Joy
Syncfusion Team
November 25, 2008 11:30 AM UTC
Hi Keshav,
We appreciate your interest in Syncfusion products.
After setting the HeaderText for the columns, you can specify the GroupByOptions.CaptionText for that column setting the header text instead of the default caption (the default setting is:
.CaptionText = "{CategoryName}: {Category} - {RecordCount} Items";).
Here is some code:
this.gridGroupingControl1.TableDescriptor.Columns["Col1"].HeaderText = "MyColumn";
this.gridGroupingControl1.TableDescriptor.Columns["Col1"].GroupByOptions.CaptionText = "MyColumn : {Category} - {RecordCount} Items";
Another option is to replace it dynamically by handling GridGroupingControl.QueryCellStyleInfo, checking for e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell.
Regards,
Jisha