Spread for ASP.NET 8.0 Product Documentation
AlternatingRows Property (ColumnHeader)
Example 


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 alternating rows for this column 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 column header.
FarPoint.Web.Spread.ColumnHeader colhdr;
FpSpread1.ActiveSheetView.AlternatingRows[0].BackColor = Color.Yellow;
FpSpread1.ActiveSheetView.AlternatingRows[1].BackColor = Color.GreenYellow;
colhdr = FpSpread1.ActiveSheetView.ColumnHeader;
TextBox1.Text = Convert.ToString(colhdr.AlternatingRows.Count); 
Dim colhdr As FarPoint.Web.Spread.ColumnHeader
FpSpread1.ActiveSheetView.AlternatingRows(0).BackColor = Color.Yellow
FpSpread1.ActiveSheetView.AlternatingRows(1).BackColor = Color.GreenYellow
colhdr = FpSpread1.ActiveSheetView.ColumnHeader
TextBox1.Text = Convert.ToString(colhdr.AlternatingRows.Count)
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

ColumnHeader Class
ColumnHeader Members
AlternatingRows Class

User-Task Documentation

Customizing the Appearance of Headers

 

 


Copyright © GrapeCity, inc. All rights reserved.