Spread Windows Forms 10.0 Product Documentation
Parent Property (IChildModelSupport)
Example 


Gets or sets the parent data source.
Syntax
'Declaration
 
Property Parent As IChildModelSupport
'Usage
 
Dim instance As IChildModelSupport
Dim value As IChildModelSupport
 
instance.Parent = value
 
value = instance.Parent
IChildModelSupport Parent {get; set;}

Property Value

IChildModelSupport object with parent data model
Example
This example returns the parent IDataSourceSupport object.
private void fpSpread1_ChildViewCreated(object sender, FarPoint.Win.Spread.ChildViewCreatedEventArgs e)
{
     FarPoint.Win.Spread.Model.IChildModelSupport mTest;
     mTest = (FarPoint.Win.Spread.Model.IChildModelSupport)e.SheetView.Models.Data;
     label1.Text = "The parent model is " + Convert.ToString(mTest.Parent);
}
Private Sub FpSpread1_ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ChildViewCreatedEventArgs) Handles
FpSpread1.ChildViewCreated
     Dim mTest As FarPoint.Win.Spread.Model.IChildModelSupport
     mTest = e.SheetView.Models.Data
     Label1.Text = "The parent model is " & Convert.ToString(mTest.Parent)
End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

IChildModelSupport Interface
IChildModelSupport Members

 

 


Copyright © GrapeCity, inc. All rights reserved.