ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.EvenRowStyle Property

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

[Visual Basic]

Public Property EvenRowStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property EvenRowStyle: C1.Win.C1TrueDBGrid.Style read get_EvenRowStyle write set_EvenRowStyle;

Example

The following code sets the background of the even rows in the second split to SpringGreen:

·      Visual Basic

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

       Me.C1TrueDBGrid1.Splits(1).EvenRowStyle.BackColor = Color.SpringGreen

·      C#

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

       this.c1TrueDBGrid1.Splits[1].EvenRowStyle.BackColor = Color.SpringGreen;

·      Delphi

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

       Self.C1TrueDBGrid1.Splits[1].EvenRowStyle.BackColor := Color.SpringGreen;

See Also

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


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