Version

GetCellValue Method

Returns the value of the cell which corresponds to the specified UltraTreeNodeColumn for this UltraTreeNode.
Syntax
'Declaration
 
Public Function GetCellValue( _
   ByVal column As UltraTreeNodeColumn _
) As Object
public object GetCellValue( 
   UltraTreeNodeColumn column
)

Parameters

column
The UltraTreeNodeColumn instance which defines the cell whose value is to be returned.
Remarks

Note: The GetCellValue property can be used as an alternative to accessing the Value property of the UltraTreeNodeCell object; accessing members of the UltraTreeNodeCell object will cause the object to be created if one has not already been, whereas using the GetCellValue method will not cause an object to be created.

Example
The following code sample demonstrates how to use the UltraTreeNode's GetCellText and GetCellValue methods to obtain the actual value and display value of a cell without creating an UltraTreeNodeCell object.

Imports Infragistics.Win
Imports Infragistics.Win.Layout
Imports Infragistics.Win.UltraWinTree

    Private Sub GetCellInfo(ByVal node As UltraTreeNode, ByVal column As UltraTreeNodeColumn, ByRef text As String, ByRef value As Object)
        text = node.GetCellText(column)
        value = node.GetCellValue(column)
    End Sub
using Infragistics.Win;
using Infragistics.Win.Layout;
using Infragistics.Win.UltraWinTree;
using System.Diagnostics;

		private void GetCellInfo(UltraTreeNode node, UltraTreeNodeColumn column, out string text, out object value)
		{
			text = node.GetCellText(column);
			value = node.GetCellValue(column);
		}
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