Spread for ASP.NET 9.0 Product Documentation
Parent Property (AlternatingRow)
Example 


Gets the parent AlternatingRows object that contains this alternating row.
Syntax
'Declaration
 
Public ReadOnly Property Parent As AlternatingRows
'Usage
 
Dim instance As AlternatingRow
Dim value As AlternatingRows
 
value = instance.Parent
public AlternatingRows Parent {get;}

Property Value

Parent AlternatingRows object containing this alternating row
Example
This example returns the parent of the first alternating row.
FpSpread1.Sheets(0).SetValue(0,0,"Test")
FpSpread1.Sheets(0).SetValue(1,0,"for")
FpSpread1.Sheets(0).SetValue(2,0,"Parent")
FpSpread1.Sheets(0).AlternatingRows(0).Locked=True
FpSpread1.Sheets(0).AlternatingRows(1).Locked=True
TextBox1.Text=Convert.ToString(FpSpread1.Sheets(0).AlternatingRows(0).Parent)
FpSpread1.Sheets[0].SetValue(0,0,"Test");
FpSpread1.Sheets[0].SetValue(1,0,"for");
FpSpread1.Sheets[0].SetValue(2,0,"Parent");
FpSpread1.Sheets[0].AlternatingRows[0].Locked=true;
FpSpread1.Sheets[0].AlternatingRows[1].Locked=true;
TextBox1.Text=Convert.ToString(FpSpread1.Sheets[0].AlternatingRows[0].Parent);
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

AlternatingRow Class
AlternatingRow Members
AlternatingRows Class

 

 


Copyright © GrapeCity, inc. All rights reserved.