TreeView for WinForms | ComponentOne
C1.Win.TreeView Namespace / BindingInfo Class / ParentKeyField Property
Example

In This Topic
    ParentKeyField Property (BindingInfo)
    In This Topic
    Gets or sets a value representing the data source field identifying the parent record in this data source.
    Syntax
    'Declaration
     
    
    <C1CategoryAttribute("Data")>
    <C1DescriptionAttribute("BindingInfo.ParentKeyField", "Gets or sets a value representing the data source field identifying the parent record in this data source.")>
    <DefaultValueAttribute("")>
    Public Property ParentKeyField As String
    [C1Category("Data")]
    [C1Description("BindingInfo.ParentKeyField", "Gets or sets a value representing the data source field identifying the parent record in this data source.")]
    [DefaultValue("")]
    public string ParentKeyField {get; set;}
    Remarks
    This string uses the '\\' as a separator. Last field name sets the field to be used on all of the following levels.
    Example
    c1TreeView.BindingInfo.ParentKeyField = "First\\Second\\etc";
    See Also