BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void ggcProjects_RecalculateCoveredRanges() { ggcProjects.TableModel.CoveredRanges.Clear(); int numOfElements = ggcProjects.Table.Elements.Count; if (numOfElements > 0) { int maxNumOfCellMerges = 6; int offsetColumns = 2; int columnIndexProject = (ggcProjects.TableDescriptor.Columns["Project"].GetRelativeColumnIndex() + offsetColumns); int columnIndexProjectNumber = (ggcProjects.TableDescriptor.Columns["Project Number"].GetRelativeColumnIndex() + offsetColumns); int columnIndexLink = (ggcProjects.TableDescriptor.Columns["Link"].GetRelativeColumnIndex() + offsetColumns); for (int i = 0; i < numOfElements; i++) { if (ggcProjects.Table.Elements[i] is GridCaptionSection) { GridCaptionSection section = (GridCaptionSection)ggcProjects.Table.Elements[i]; if (section.ParentGroup.IsExpanded) { int recordCount = section.ParentGroup.Records.Count; if (recordCount > 0 && recordCount % maxNumOfCellMerges == 0) { int indexTop = section.ParentGroup.Records[0].GetRowIndex(); for (int indexMergeTop = indexTop; indexMergeTop < (indexTop + recordCount); indexMergeTop = (indexMergeTop + maxNumOfCellMerges)) { int indexMergeBottom = (indexMergeTop + (maxNumOfCellMerges - 1)); ggcProjects.TableModel.CoveredRanges.Add(GridRangeInfo.Cells(indexMergeTop, columnIndexProject, indexMergeBottom, columnIndexProject)); ggcProjects.TableModel.CoveredRanges.Add(GridRangeInfo.Cells(indexMergeTop, columnIndexProjectNumber, indexMergeBottom, columnIndexProjectNumber)); ggcProjects.TableModel.CoveredRanges.Add(GridRangeInfo.Cells(indexMergeTop, columnIndexLink, indexMergeBottom, columnIndexLink)); } } } } } } }
Sample link: GridGroupingControl
Any way we are glad to know that your reported problem has resolved.
Please let us know if you have any further assistance on this.
Regards,
Mohanraj G