Spread Windows Forms 9.0 Product Documentation
ParentRelationName Property (DefaultSheetDataModel)
Example 


Gets the name of the data relation being used for a hierarchical display of data.
Syntax
'Declaration
 
Public ReadOnly Property ParentRelationName As String
'Usage
 
Dim instance As DefaultSheetDataModel
Dim value As String
 
value = instance.ParentRelationName
public string ParentRelationName {get;}

Property Value

String containing the name of the parent
Example
This example returns the parent relation for the data model.
private void fpSpread1ChildViewCreated(object sender, FarPoint.Win.Spread.ChildViewCreatedEventArgs e) 
{
    FarPoint.Win.Spread.Model.DefaultSheetDataModel dm;
    dm = e.SheetView.Models.Data;
    string s;
    s = dm.ParentRelationName;
    MessageBox.Show("The name of the parent relation is " + s);
}
Private Sub FpSpread1ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ChildViewCreatedEventArgs) Handles
fpSpread1.ChildViewCreated
    Dim dm As FarPoint.Win.Spread.Model.DefaultSheetDataModel
    dm = e.SheetView.Models.Data
    Dim s As String
    s = dm.ParentRelationName
    MessageBox.Show("The name of the parent relation is " & s)
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

DefaultSheetDataModel Class
DefaultSheetDataModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.