'Declaration Public Event AfterCellCancelUpdate As CellEventHandler
public event CellEventHandler AfterCellCancelUpdate
The event handler receives an argument of type CellEventArgs containing data related to this event. The following CellEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cell | Returns a reference to the cell of interest. |
The cell argument returns a reference to an UltraGridCell object that can be used to set properties of, and invoke methods on, the cell whose update was canceled. You can use this reference to access any of the returned cell's properties or methods.
This event is generated after the user presses the ESC key to cancel changes made to a cell's value. It is not generated when the CancelUpdate method is invoked.
The BeforeCellCancelUpdate event, which occurs before a cell's update is canceled, is generated before this event.
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Imports System.Diagnostics Private Sub UltraGrid1_AfterCellCancelUpdate(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CellEventArgs) Handles ultraGrid1.AfterCellCancelUpdate ' AfterCellCancelUpdate gets called when the user cancels a cell update by hitting ' Escape key when in edit mode. Debug.WriteLine("User has just canceled updating the cell. Band = " & e.Cell.Row.Band.Key & ", Column = " & e.Cell.Column.Key) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void ultraGrid1_AfterCellCancelUpdate(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e) { // AfterCellCancelUpdate gets called when the user cancels a cell update by hitting // Escape key when in edit mode. Debug.WriteLine( "User has just canceled updating the cell. Band = " + e.Cell.Row.Band.Key + ", Column = " + e.Cell.Column.Key ); }
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