Gets or sets a value indicating whether the split uses the OddRowStyle for odd-numbered rows and EvenRowStyle for even-numbered rows.
[Visual Basic]
Public Property AlternatingRowStyle As Boolean
[C#]
public bool AlternatingRowStyle {get;set;}
[Delphi]
public property AlternatingRowStyle: Boolean read get_AlternatingRowStyle write set_AlternatingRowStyle;
Remarks
If True, OddRowStyle and EvenRowStyle properties control the appearance of rows within the specified object.
If False (the default), the Split.Style property controls the display of rows within the specified object.
Example
The following code changes the appearance of the rows in the second split using the OddRowStyle and EvenRowStyle properties:
Me.C1TrueDBGrid1.Splits(1).AlternatingRowStyle = True
· C#
this.c1TrueDBGrid1.Splits[1].AlternatingRowStyle = True;
· Delphi
Self.C1TrueDBGrid1.Splits[1].AlternatingRowStyle := True;
See Also
Split Class | Split Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |