ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.OddRowStyle Property

Gets or sets the Style object that controls the appearance of an odd-numbered row when using C1TrueDBGrid.AlternatingRows.

[Visual Basic]

Public Property OddRowStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property OddRowStyle: C1.Win.C1TrueDBGrid.Style read get_OddRowStyle write set_OddRowStyle;

Example

The following example sets the ForeColor of the data in the cells in the odd rows of the first split to Green:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).AlternatingRowStyle = True

       Me.C1TrueDBGrid1.Splits(0).OddRowStyle.ForeColor = Color.Green

·      C#

       this.c1TrueDBGrid1.Splits[0].AlternatingRowStyle = true;

       this.c1TrueDBGrid1.Splits[0].OddRowStyle.ForeColor = Color.Green;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].AlternatingRowStyle := True;

       Self.C1TrueDBGrid1.Splits[0].OddRowStyle.ForeColor := Color.Green;

See Also

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


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