Version

CellValueChanged Event

Occurs during an edit mode session when a cell's value has changed.
Syntax
'Declaration
 
Public Event CellValueChanged As CellValueChangedEventHandler
public event CellValueChangedEventHandler CellValueChanged
Event Data

The event handler receives an argument of type CellValueChangedEventArgs containing data related to this event. The following CellValueChangedEventArgs properties provide information specific to this event.

PropertyDescription
Cell (Inherited from Infragistics.Win.UltraWinTree.CellEventArgs)Returns the UltraTreeNodeCell object for which this instance was created.
Column (Inherited from Infragistics.Win.UltraWinTree.CellEventArgs)Returns the UltraTreeNodeColumn for which this instance was created.
CurrentValue Returns the editor's current value.
Editor The Infragistics.Win.EmbeddableEditorBase-derived editor that is conducting the edit mode session for the cell whose value has changed.
IsValid Returns whether the current editor value is valid.
Node (Inherited from Infragistics.Win.UltraWinTree.CellEventArgs)Returns the UltraTreeNode for which this instance was created.
OriginalValue Returns the cell's value prior to entering edit mode.
Example
The following code sample demonstrates how to use the CellValueChanged event to obtain information about changes the end user has made to cell values:

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTree

    Private Sub ultraTree1_CellValueChanged(ByVal sender As Object, ByVal e As CellValueChangedEventArgs) Handles ultraTree1.CellValueChanged
        Dim editValue As Object = IIf(e.IsValid, e.CurrentValue, Nothing)
        Debug.WriteLine(String.Format("CellValueChanged event fired for column '{0}': OriginalValue = '{1}', CurrentValue = '{2}'", e.Column.Key, e.OriginalValue, editValue))
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTree;
using System.Diagnostics;

		private void ultraTree1_CellValueChanged(object sender, Infragistics.Win.UltraWinTree.CellValueChangedEventArgs e)
		{
			object editValue = e.IsValid ? e.CurrentValue : null;
			Debug.WriteLine( string.Format("CellValueChanged event fired for column '{0}': OriginalValue = '{1}', CurrentValue = '{2}'", e.Column.Key, e.OriginalValue, editValue ) );
		}
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