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


Glossary Item Box

Gets the parent AlternatingRows object that contains this alternating row.

Syntax

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

Property Value

Parent AlternatingRows object containing this alternating row

Example

This example returns the parent of the first alternating row.
Visual BasicCopy Code
FpSpread1.Sheets(0).SetCellValue(0,0,"Test")
FpSpread1.Sheets(0).SetCellValue(1,0,"for")
FpSpread1.Sheets(0).SetCellValue(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)
C#Copy Code
FpSpread1.Sheets[0].SetCellValue(0,0,"Test");
FpSpread1.Sheets[0].SetCellValue(1,0,"for");
FpSpread1.Sheets[0].SetCellValue(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 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.