Gets or sets a value indicating whether the drop-down uses the OddRowStyle for odd-numbered rows and EvenRowStyle for even-numbered rows.
[Visual Basic]
Public Property AlternatingRows As Boolean
[C#]
public bool AlternatingRows {get;set;}
[Delphi]
public property AlternatingRows: Boolean read get_AlternatingRows write set_AlternatingRows;
Remarks
If True, the OddRowStyle and EvenRowStyle properties control the appearance of rows within the specified object.
If False (the default), the Style property controls the display of rows within the specified object.
Example
The following code uses the AlternatingRows property to show alternating row style in the C1TrueDBDropdown:
Me.C1TrueDBDropdown1.AlternatingRows = True
· C#
this.c1TrueDBDropdown1.AlternatingRows = true;
· Delphi
Self.C1TrueDBDropdown1.AlternatingRows := True;
Note: By default, the EvenRowStyle BackColor property is set to Aqua. Therefore, the first row's background color appears aqua and every other row thereafter.
See Also
C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |