ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.Merge Property

Gets or sets a value indicating whether contiguous like-value cells of this column are merged into one large cell.

[Visual Basic]

Public Property Merge As ColumnMergeEnum

[C#]

public ColumnMergeEnum Merge {get;set;}

[Delphi]

public property Merge: ColumnMergeEnum read get_Merge write set_Merge;

Example

The following code uses the Merge property to enable data-sensitive cell merging in the Country column, which groups its cells according to their contents:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns("Country").Merge = C1.Win.C1TrueDBGrid.ColumnMergeEnum.Free

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns["Country"].Merge = C1.Win.C1TrueDBGrid.ColumnMergeEnum.Free;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns['Country'].Merge := C1.Win.C1TrueDBGrid.ColumnMergeEnum.Free;

For more information on cell merging using the Merge property, see the Data-Sensitive Cell Merging topic.

See Also

C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.