To set the column's caption height, set the ColumnCaptionHeight property. This can be set either in the designer or in code.
To set the column's caption height in the Designer, complete the following steps:
To set the column's caption height in code, complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.Splits(0).ColumnCaptionHeight = Me.C1TrueDBGrid1.Splits(0).ColumnCaptionHeight * 2 |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.Splits[0].ColumnCaptionHeight = this.c1TrueDBGrid1.Splits[0].ColumnCaptionHeight * 2; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.Columns(0).Caption = "Composer's First Name" |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.Columns[0].Caption = "Composer's First Name"; |
The caption in the column containing first names is set to Composer's First Name and spans two rows: