Version

DateHierarchyLevel Property (FilterUIProviderTreeSettings)

Gets or sets how many levels down the tree will break down a DateTime object.
Syntax
'Declaration
 
Public Property DateHierarchyLevel As DateHierarchyLevel
public DateHierarchyLevel DateHierarchyLevel {get; set;}
Remarks

Note: This property can be overriden on a per-instance basis by setting the FilterTreeTools FilterTreeTool.DateHierarchyLevel property.

Example
The following code snippet illustrates how to set some appearances of the tree that will be applied to all trees that are shown by the filter provider.

Imports Infragistics.Win.SupportDialogs.FilterUIProvider

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) 
    Dim treeSettings As FilterUIProviderTreeSettings = Me.ultraGridFilterUIProvider1.TreeSettings 
    
    ' Set the default background of the tree that is shown by all providers 
    treeSettings.Appearance.BackColor = Color.Chartreuse 
    
    ' Show all dates in the tree as a single flat list, as is done in the previous filtering 
    ' functionality of the UltraWinGrid. 
    treeSettings.DateHierarchyLevel = DateHierarchyLevel.Flat 
    
    ' Don't ever show a focus rect on the tree 
    treeSettings.DrawsFocusRect = DefaultableBoolean.[False] 
    
    ' Set the color of the lines that connect the various nodes 
    treeSettings.NodeConnectorColor = Color.Blue 
End Sub
using Infragistics.Win.SupportDialogs.FilterUIProvider;

private void Form1_Load(object sender, EventArgs e)
{
    FilterUIProviderTreeSettings treeSettings = this.ultraGridFilterUIProvider1.TreeSettings;

    // Set the default background of the tree that is shown by all providers
    treeSettings.Appearance.BackColor = Color.Chartreuse;

    // Show all dates in the tree as a single flat list, as is done in the previous filtering
    // functionality of the UltraWinGrid.
    treeSettings.DateHierarchyLevel = DateHierarchyLevel.Flat;

    // Don't ever show a focus rect on the tree
    treeSettings.DrawsFocusRect = DefaultableBoolean.False;

    // Set the color of the lines that connect the various nodes
    treeSettings.NodeConnectorColor = Color.Blue;    
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also