ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.CaptionStyle Property

Gets or sets the Style object that controls the appearance of the caption area.

[Visual Basic]

Public Property CaptionStyle As C1.Win.C1TrueDBGrid.Style

[C#]

public C1.Win.C1TrueDBGrid.Style CaptionStyle {get;set;}

[Delphi]

public property CaptionStyle: C1.Win.C1TrueDBGrid.Style read get_CaptionStyle write set_CaptionStyle;

Example

The following code sets the background of the caption in the second split to OldLace:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(1).CaptionStyle.BackColor = Color.OldLace

·      C#

       this.c1TrueDBGrid1.Splits[1].CaptionStyle.BackColor = Color.OldLace;

·      Delphi

       Self.C1TrueDBGrid1.Splits[1].CaptionStyle.BackColor := Color.OldLace;

See Also

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


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