Occurs after an edit mode session ends for an
UltraTreeNodeCell.
Syntax
Example
The following code sample demonstrates how to use the AfterCellExitEditMode event to customize a cell's appearance based on its new value:
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_AfterCellExitEditMode(ByVal sender As Object, ByVal e As AfterCellExitEditModeEventArgs) Handles ultraTree1.AfterCellExitEditMode
If e.Cell.Value Is Nothing Or e.Cell.Value Is DBNull.Value Then
e.Cell.Appearance.BackColor = Color.Red
End If
End Sub
|
| C# | Copy Code |
|---|
using Infragistics.Win; using Infragistics.Win.UltraWinTree; using System.Diagnostics;
private void ultraTree1_AfterCellExitEditMode(object sender,
Infragistics.Win.UltraWinTree.AfterCellExitEditModeEventArgs e)
{
if ( e.Cell.Value == null || e.Cell.Value == DBNull.Value )
{
e.Cell.Appearance.BackColor = Color.Red;
}
}
|
See Also