Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / RowHeader Class / AlternatingRows Property

In This Topic
    AlternatingRows Property (RowHeader)
    In This Topic
    Gets the alternating rows information for the row header.
    Public ReadOnly Property AlternatingRows As AlternatingRows
    Dim instance As RowHeader
    Dim value As AlternatingRows
    value = instance.AlternatingRows
    public AlternatingRows AlternatingRows {get;}

    Property Value

    AlternatingRows object containing the alternating rows for this row header
    This example sets up the alternating rows of the sheet and assigns different background colors to those rows, and then returns  to a list box the number of alternating rows in the row header.
    FarPoint.Web.Spread.RowHeader rhdr; 
    rhdr = FpSpread1.ActiveSheetView.RowHeader;
    rhdr.ColumnCount = 4;
    FpSpread1.ActiveSheetView.AlternatingRows[0].BackColor = Color.Yellow;
    FpSpread1.ActiveSheetView.AlternatingRows[1].BackColor = Color.GreenYellow;
    Dim rhdr As FarPoint.Web.Spread.RowHeader
    rhdr = FpSpread1.ActiveSheetView.RowHeader
    rhdr.ColumnCount = 4
    FpSpread1.ActiveSheetView.AlternatingRows(0).BackColor = Color.Yellow
    FpSpread1.ActiveSheetView.AlternatingRows(1).BackColor = Color.GreenYellow
    See Also