Returns the index corresponding to this row from the IList that the control is bound to. Return value of -1 indicates that a row has been deleted or doesn't exist anymore.
The following code sample demonstrates how to use some of the UltraTreeNode's data binding related properties to inspect the state of the node.
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
'Declaration
Public ReadOnly Property ListIndex As Integer
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() );
}
'Declaration
Public ReadOnly Property ListIndex As Integer
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