Skip to main content

TreeListView.AllowDefaultContentForHierarchicalDataTemplate Property

Gets or sets whether to use the default content in case both the TreeListView.DataRowTemplate and TreeListView.DataRowTemplateSelector return null.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v14.2.dll

#Declaration

public bool AllowDefaultContentForHierarchicalDataTemplate { get; set; }

#Property Value

Type Description
Boolean

true to use the default content; otherwise, false.

#Remarks

If both the TreeListView.DataRowTemplate and TreeListView.DataRowTemplateSelector are specified, a data row is rendered using the template returned by the template selector. If the TreeListView.DataRowTemplateSelector returns null, the template specified by the TreeListView.DataRowTemplate property is used. If the TreeListView.DataRowTemplate also returns null, AllowDefaultContentForHierarchicalDataTemplate defines whether to use the default template or set a blank template.

See Also