ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.SelectedStyle Property

Gets or sets the Style object that controls the appearance of selected rows and columns.

[Visual Basic]

Public Property SelectedStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property SelectedStyle: C1.Win.C1TrueDBGrid.Style read get_SelectedStyle write set_SelectedStyle;

Example

In the following example, when a row or column is selected in the first split, it appears highlighted with a yellow background and blue text:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).SelectedStyle.BackColor = Color.Yellow

       Me.C1TrueDBGrid1.Splits(0).SelectedStyle.ForeColor = Color.Blue

·      C#

       this.c1TrueDBGrid1.Splits[0].SelectedStyle.BackColor = Color.Yellow;

       this.c1TrueDBGrid1.Splits[0].SelectedStyle.ForeColor = Color.Blue;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].SelectedStyle.BackColor := Color.Yellow;

       Self.C1TrueDBGrid1.Splits[0].SelectedStyle.ForeColor := Color.Blue;

See Also

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


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