ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.RecordSelectorStyle Property

Gets or sets the Style object that controls the appearance of the RecordSelectors.

[Visual Basic]

Public Property RecordSelectorStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property RecordSelectorStyle: C1.Win.C1TrueDBGrid.Style read get_RecordSelectorStyle write set_RecordSelectorStyle;

Example

The following code gives the record selector a gold gradient background:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).RecordSelectorStyle.BackColor = Color.Gold

       Me.C1TrueDBGrid1.Splits(0).RecordSelectorStyle.GradientMode = GradientModeEnum.ForwardDiagonal

·      C#

       this.c1TrueDBGrid1.Splits[0].RecordSelectorStyle.BackColor = Color.Gold;

       this.c1TrueDBGrid1.Splits[0].RecordSelectorStyle.GradientMode = GradientModeEnum.ForwardDiagonal;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].RecordSelectorStyle.BackColor := Color.Gold

       Self.C1TrueDBGrid1.Splits[0].RecordSelectorStyle.GradientMode := GradientModeEnum.ForwardDiagonal;

See Also

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


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