Spread ASP.NET 6.0 Product Documentation
AlternatingRows Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > RowHeader Class : AlternatingRows Property


Glossary Item Box

Gets the alternating rows information for the row header.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property AlternatingRows As AlternatingRows
Visual Basic (Usage)Copy Code
Dim instance As RowHeader
Dim value As AlternatingRows
 
value = instance.AlternatingRows
C# 
public AlternatingRows AlternatingRows {get;}

Property Value

AlternatingRows object containing the alternating rows for this row header

Example

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.
C#Copy Code
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;
ListBox1.Items.Add(Convert.ToString(rhdr.AlternatingRows.Count));
Visual BasicCopy Code
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
ListBox1.Items.Add(Convert.ToString(rhdr.AlternatingRows.Count))

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.