| Visual Basic (Declaration) | |
|---|---|
Public Event AfterCellUpdate() As CellEventHandler | |
| C# | |
|---|---|
public event CellEventHandler AfterCellUpdate() | |
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 value has been modified. You can use this reference to access any of the returned cell's properties or methods.
This event is generated when a cell's value has been changed. Note that the cell's new value is not necessarily committed to the data source at this time, since various factors such as the type of record locking employed by the data source, as well as the value of the UpdateMode property, can affect when the update occurs. The BeforeRowUpdate event is generated when the new value is to be committed to the data source.
The BeforeCellUpdate event, which is generated before this event, provides an opportunity to prevent the change from occurring.
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.Shared | |
| C# | Copy Code |
|---|---|
using Infragistics.Shared; | |
