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

In This Topic
    DataMember Property (BindingInfo)
    In This Topic
    Gets or sets a name of a specific record set within the DataSource.
    Syntax
    'Declaration
     
    
    <C1DescriptionAttribute("BindingInfo.DataMember", "Gets or sets a name of a specific record set within the DataSource.")>
    <C1CategoryAttribute("Data")>
    <EditorAttribute("System.Windows.Forms.Design.DataMemberFieldEditor, System.Design", System.Drawing.Design.UITypeEditor)>
    <DefaultValueAttribute("")>
    Public Property DataMember As String
    [C1Description("BindingInfo.DataMember", "Gets or sets a name of a specific record set within the DataSource.")]
    [C1Category("Data")]
    [Editor("System.Windows.Forms.Design.DataMemberFieldEditor, System.Design", System.Drawing.Design.UITypeEditor)]
    [DefaultValue("")]
    public string DataMember {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.DataMember = "First\\Second\\etc";
    See Also