Occurs during an edit mode session when a cell's value has changed.
Syntax
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.
| Visual Basic | Copy Code |
|---|
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
|
| C# | Copy Code |
|---|
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 ) );
}
|
See Also