Spread for ASP.NET 11 Product Documentation
Parent Property (AlternatingRows)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > AlternatingRows Class : Parent Property
Gets the parent object that contains this collection of alternating rows.
Syntax
'Declaration
 
Public ReadOnly Property Parent As Object
'Usage
 
Dim instance As AlternatingRows
Dim value As Object
 
value = instance.Parent
public object Parent {get;}

Property Value

Object containing the parent Rows object containing this AlternatingRows collection
Example
This example creates three alternating rows and uses the Parent property to set the background color of the rows.
FpSpread1.Sheets[0].AlternatingRows.Count = 3;
FpSpread1.Sheets[0].AlternatingRows.Parent[0].BackColor = Color.Red;
FpSpread1.Sheets[0].AlternatingRows.Parent[1].BackColor = Color.Blue;
FpSpread1.Sheets[0].AlternatingRows.Parent[2].BackColor = Color.Green;
FpSpread1.Sheets(0).AlternatingRows.Count = 3
FpSpread1.Sheets(0).AlternatingRows.Parent(0).BackColor = Color.Red
FpSpread1.Sheets(0).AlternatingRows.Parent(1).BackColor = Color.Blue
FpSpread1.Sheets(0).AlternatingRows.Parent(2).BackColor = Color.Green
See Also

Reference

AlternatingRows Class
AlternatingRows Members
Rows Class