ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.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.

Example

First set the MarqueeStyle property. The following example highlights the selected row in red and centers the cell data:

·      Visual Basic

       Me.C1TrueDBGrid1.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.HighlightRow

       Me.C1TrueDBGrid1.HighLightRowStyle.HorizontalAlignment = C1.Win.C1TrueDBGrid.AlignHorzEnum.Center

       Me.C1TrueDBGrid1.HighLightRowStyle.BackColor = Color.Red

·      C#

       this.c1TrueDBGrid1.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.HighlightRow;

       this.c1TrueDBGrid1.HighLightRowStyle.HorizontalAlignment = C1.Win.C1TrueDBGrid.AlignHorzEnum.Center;

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

·      Delphi

       Self.C1TrueDBGrid1.MarqueeStyle := C1.Win.C1TrueDBGrid.MarqueeEnum.HighlightRow;

       Self.C1TrueDBGrid1.HighLightRowStyle.HorizontalAlignment := C1.Win.C1TrueDBGrid.AlignHorzEnum.Center;

       Self.C1TrueDBGrid1.HighLightRowStyle.BackColor = Color.Red;

For additional information on using styles, see Highlighting the Row of the Selected Cell.

See Also

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


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