BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
GridSummaryRowDescriptor summaryRow1 = new GridSummaryRowDescriptor();
summaryRow1.Name = "Caption";
summaryRow1.Visible = false;
this.gridGroupingControl1.TableDescriptor.SummaryRows.Add(summaryRow1);
this.gridGroupingControl1.TopLevelGroupOptions.CaptionSummaryRow = "Caption";
this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) { if(e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionSummaryCell) { e.Style.Text = e.TableCellIdentity.ColIndex.ToString(); } }Here is a little sample. http://www.syncfusion.com/Support/user/uploads/GGC_ExcelCopy_335bd462.zip
>GridSummaryRowDescriptor summaryRow1 = new GridSummaryRowDescriptor();
>summaryRow1.Name = "Caption";
>summaryRow1.Visible = false;
>this.gridGroupingControl1.TableDescriptor.SummaryRows.Add(summaryRow1);
>this.gridGroupingControl1.TopLevelGroupOptions.CaptionSummaryRow = "Caption";
>this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);
>
>private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
>{
> if(e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionSummaryCell)
> {
> e.Style.Text = e.TableCellIdentity.ColIndex.ToString();
> }
>}
>