Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ColumnHeader Class / AlternatingRows Property
Example


In This Topic
    AlternatingRows Property (ColumnHeader)
    In This Topic
    Gets the alternating rows information for the column header.
    Syntax
    'Declaration
     
    Public ReadOnly Property AlternatingRows As AlternatingRows
    'Usage
     
    Dim instance As ColumnHeader
    Dim value As AlternatingRows
     
    value = instance.AlternatingRows
    public AlternatingRows AlternatingRows {get;}

    Property Value

    AlternatingRows object containing the collection of alternating rows.
    Remarks

    This property is available at run time only.

    Example
    This example changes the background color of the first set of alternating rows.
    fpSpread1.ActiveSheet.ColumnHeader.RowCount = 4;
    
    fpSpread1.ActiveSheet.ColumnHeader.AlternatingRows[0].BackColor = Color.LightBlue;
    fpSpread1.ActiveSheet.ColumnHeader.RowCount = 4
    
    fpSpread1.ActiveSheet.ColumnHeader.AlternatingRows(0).BackColor = Color.LightBlue
    See Also