ComponentOne List for WinForms
C1.Win.List.ListBase Namespace / C1ListBase Class / AlternatingRows Property

In This Topic
    AlternatingRows Property (C1ListBase)
    In This Topic
    Determines if a list or split displays odd-numbered rows in one style and even-numbered rows in another.
    Syntax
    'Declaration
     
    
    Public Property AlternatingRows As Boolean
    public bool AlternatingRows {get; set;}

    Property Value

    The default value is false.
    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.

    At design time, you can change the colors and fonts used to render odd (even) rows by modifying the built-in OddRow (EvenRow) style using the Styles property page.

    At run time, you can change the colors and fonts used to render odd (even) rows by modifying the Style object returned by the OddRowStyle (EvenRowStyle) property.

    See Also