Infragistics2.Win.UltraWinTree.v8.1
IsBandNode Property
See Also  Example
Infragistics.Win.UltraWinTree Namespace > UltraTreeNode Class : IsBandNode Property

Returns whether or not this node is a band node.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property IsBandNode As Boolean
C# 
public bool IsBandNode {get;}

Remarks

A band node is a node used in a databound tree to separate bands. The band node represents a table, relationship, or other list object in the underlying data source.

Example

The following code sample demonstrates how to use some of the UltraTreeNode's data binding related properties to inspect the state of the node.

Visual BasicCopy Code
Imports Infragistics.Win
Imports Infragistics.Win.Layout
Imports Infragistics.Win.UltraWinTree

    Private Sub GetBoundNodeInfo(ByVal node As UltraTreeNode)

        If Not node.DataColumnSetResolved Is Nothing Then
            Debug.WriteLine("DataColumnSetResolved = '" + node.DataColumnSetResolved.Key + "'")
        End If

        If Not node.DisplayColumnSetResolved Is Nothing Then
            Debug.WriteLine("DisplayColumnSetResolved = '" + node.DisplayColumnSetResolved.Key + "'")
        End If

        Debug.WriteLine("ListIndex = " + node.ListIndex.ToString())

        If Not node.ListObject Is Nothing Then
            Debug.WriteLine("ListObject = " + node.ListObject.ToString())
        End If

        Debug.WriteLine("IsBandNode = " + node.IsBandNode.ToString())
        Debug.WriteLine("ShowColumnsResolved = " + node.ShowColumnsResolved.ToString())
        Debug.WriteLine("BandName = " + node.BandName.ToString())

    End Sub


C#Copy Code
using Infragistics.Win;
using Infragistics.Win.Layout;
using Infragistics.Win.UltraWinTree;
using System.Diagnostics;

       
private void GetBoundNodeInfo( UltraTreeNode node )
       {
           
if ( node.DataColumnSetResolved != null )
               Debug.WriteLine(
"DataColumnSetResolved = '" + node.DataColumnSetResolved.Key + "'" );

           
if ( node.DisplayColumnSetResolved != null )
               Debug.WriteLine(
"DisplayColumnSetResolved = '" + node.DisplayColumnSetResolved.Key + "'" );

           Debug.WriteLine(
"ListIndex = " + node.ListIndex.ToString() );

           
if ( node.ListObject != null )
               Debug.WriteLine(
"ListObject = " + node.ListObject.ToString() );

           Debug.WriteLine(
"IsBandNode = " + node.IsBandNode.ToString() );
           Debug.WriteLine(
"ShowColumnsResolved = " + node.ShowColumnsResolved.ToString() );

       }

See Also