menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataRelation - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataRelation

    This class represents a parent/child relationship between two System.Data.DataTable

    Inheritance
    System.Object
    DataRelation
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class DataRelation

    Constructors

    DataRelation()

    Initializes a new instance of the DataRelation class

    Declaration
    public DataRelation()

    DataRelation(Object, String, String)

    Declaration
    public DataRelation(object dataSource, string displayMember, string parentChildMember)
    Parameters
    Type Name Description
    System.Object dataSource
    System.String displayMember
    System.String parentChildMember

    DataRelation(Object, String, String, String)

    Declaration
    public DataRelation(object dataSource, string displayMember, string parentMember, string childMember)
    Parameters
    Type Name Description
    System.Object dataSource
    System.String displayMember
    System.String parentMember
    System.String childMember

    DataRelation(Object, String, String, String, String)

    Declaration
    public DataRelation(object dataSource, string displayMember, string parentMember, string childMember, string valueMember)
    Parameters
    Type Name Description
    System.Object dataSource
    System.String displayMember
    System.String parentMember
    System.String childMember
    System.String valueMember

    DataRelation(Object, String, String, String, String, String)

    Declaration
    public DataRelation(object dataSource, string dataMember, string displayMember, string parentMember, string childMember, string valueMember)
    Parameters
    Type Name Description
    System.Object dataSource
    System.String dataMember
    System.String displayMember
    System.String parentMember
    System.String childMember
    System.String valueMember

    DataRelation(Object, String, String, String, String, String, String)

    Declaration
    public DataRelation(object dataSource, string dataMember, string displayMember, string parentMember, string childMember, string valueMember, string checkedMember)
    Parameters
    Type Name Description
    System.Object dataSource
    System.String dataMember
    System.String displayMember
    System.String parentMember
    System.String childMember
    System.String valueMember
    System.String checkedMember

    Properties

    CheckedMember

    Gets or sets a value indicating the field to populate the state of checkbox of TreeNodeAdv in the Relation.

    Declaration
    public string CheckedMember { get; set; }
    Property Value
    Type
    System.String

    ChildMember

    Gets or sets a value indicating the child data field which behaves as a Child Node in the Relation.

    Declaration
    public string ChildMember { get; set; }
    Property Value
    Type
    System.String

    DataMember

    Gets or sets a name of a specific data table within the Relation.

    Declaration
    public string DataMember { get; set; }
    Property Value
    Type
    System.String

    DataSource

    Gets or sets the Data Source object in the Relation

    Declaration
    public object DataSource { get; set; }
    Property Value
    Type
    System.Object

    DisplayMember

    Gets or sets the field that populates the Text property of the TreeNodeAdv in the Relation.

    Declaration
    public string DisplayMember { get; set; }
    Property Value
    Type
    System.String

    ParentMember

    Gets or sets a value indicating the parent data field which behaves as a Parent Node in the Relation.

    Declaration
    public string ParentMember { get; set; }
    Property Value
    Type
    System.String

    RelationName

    Gets or sets a value indicating the relation between DataRelations.

    Declaration
    public string RelationName { get; set; }
    Property Value
    Type
    System.String

    ValueMember

    Gets or sets the field that populates the Value property of TreeNodeAdv in the Relation.

    Declaration
    public string ValueMember { get; set; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved