TreeView for WinForms | ComponentOne
C1.Win.TreeView Namespace / C1TreeColumn Class / DisplayFieldName Property
Example

In This Topic
    DisplayFieldName Property (C1TreeColumn)
    In This Topic
    Gets or sets the list of fields to be displayed in the column depending on the level of the node.
    Syntax
    'Declaration
     
    
    <C1CategoryAttribute("Data")>
    <C1DescriptionAttribute("C1TreeColumn.DisplayFieldName", "Gets or sets the list of fields to be displayed in the column depending on the level of the node.")>
    <DefaultValueAttribute("")>
    <EditorAttribute(C1.Win.TreeView.Design.DisplayFieldNameEditor, System.Drawing.Design.UITypeEditor)>
    Public Property DisplayFieldName As String
    [C1Category("Data")]
    [C1Description("C1TreeColumn.DisplayFieldName", "Gets or sets the list of fields to be displayed in the column depending on the level of the node.")]
    [DefaultValue("")]
    [Editor(C1.Win.TreeView.Design.DisplayFieldNameEditor, System.Drawing.Design.UITypeEditor)]
    public string DisplayFieldName {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