ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.HighLightRowStyle Property

Gets or sets the Style object that controls the current row/cell when the MarqueeStyle is set to Highlight Row/Cell.

[Visual Basic]

Public Property HighLightRowStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property HighLightRowStyle: C1.Win.C1TrueDBGrid.Style read get_HighLightRowStyle write set_HighLightRowStyle;

Remarks

The HighLightRowStyle value is only used when one of the following MarqueeStyle settings is in effect: HighlightCell, HighlightRow, or HighlightRowRaiseCell.

The value of the MarqueeStyle property is not affected by changes to the HighLightRowStyle property.

Example

The following code assigns a purple background to the highlighted cells:

·      Visual Basic

       Me.C1TrueDBGrid1.HighLightRowStyle.BackColor = Color.Purple

·      C#

       this.c1TrueDBGrid1.HighLightRowStyle.BackColor = Color.Purple;

·      Delphi

       Self.C1TrueDBGrid1.HighLightRowStyle.BackColor := Color.Purple;

See Also

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


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