'Declaration Public Event CellValueChanged As CellValueChangedEventHandler
public event CellValueChangedEventHandler CellValueChanged
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.
Property | Description |
---|---|
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. |
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 ) ); }
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