BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.gridControl1.Model.Options.MergeCellsMode = GridMergeCellsMode.OnDemandCalculation|GridMergeCellsMode.MergeRowsInColumn;
this.gridControl1.ColStyles[2].MergeCell = GridMergeCellDirection.RowsInColumn;
Here is a sample that has both a GridControl and a GridDataBoundGrid in it. Similar merge techniques work for each control.
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex == 2 && e.RowIndex > 1 && this.gridDataBoundGrid1[e.RowIndex, e.ColIndex].Text == this.gridDataBoundGrid1[e.RowIndex - 1, e.ColIndex].Text) { e.Style.Text = ""; } } private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, CancelEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(cc.ColIndex == 2 && cc.RowIndex > 1 && this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex].Text == this.gridDataBoundGrid1[cc.RowIndex - 1, cc.ColIndex].Text) { e.Cancel = true; } }