Gets or sets the name of the data relation.
Syntax
Visual Basic (Declaration) | |
---|
ReadOnly Property ParentRelationName As String |
C# | |
---|
string ParentRelationName {get;} |
Property Value
String containing the name of the parent relation
Example
This example returns the name of the data relation.
C# | Copy Code |
---|
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);
listBox1.Items.AddRange(new Object[] {mTest.ParentRelationName, mTest.ParentRowIndex.ToString()});
} |
Visual Basic | Copy Code |
---|
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)
ListBox1.Items.AddRange(New Object() {mTest.ParentRelationName, mTest.ParentRowIndex.ToString()})
End Sub |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also