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

In This Topic
    KeyField Property (BindingInfo)
    In This Topic
    Gets or sets a value specifying the key field of the data source bound to the tree view control.
    Syntax
    'Declaration
     
    
    <C1CategoryAttribute("Data")>
    <C1DescriptionAttribute("BindingInfo.KeyField", "Gets or sets a value specifying the key field of the data source bound to the tree view control.")>
    <DefaultValueAttribute("")>
    Public Property KeyField As String
    [C1Category("Data")]
    [C1Description("BindingInfo.KeyField", "Gets or sets a value specifying the key field of the data source bound to the tree view control.")]
    [DefaultValue("")]
    public string KeyField {get; set;}
    Remarks
    You can set the key field for all levels using square brackets: FirstLevel\\[AllOtherLevels]
    See Also