[]
        
(Showing Draft Content)

C1.Win.TrueDBGrid.BeforeColUpdateEventHandler

BeforeColUpdateEventHandler Delegate

Raised after editing is completed in a cell.

Namespace: C1.Win.TrueDBGrid
Assembly: C1.Win.TrueDBGrid.8.dll
Syntax
public delegate void BeforeColUpdateEventHandler(object sender, BeforeColUpdateEventArgs e)
Parameters
Type Name Description
object sender Raised after editing is completed in a cell.
BeforeColUpdateEventArgs e Raised after editing is completed in a cell.
Remarks

The BeforeColUpdate event occurs after editing is completed in a cell, but before data is moved from the cell to the grid's internal copy buffer. The data specified by the OldValue argument moves from the cell to the grid's copy buffer when the user completes editing within a cell, as when tabbing to another column in the same row, pressing the Enter key, or clicking on another cell. Before the data has been moved from the cell into the grid's copy buffer, the BeforeColUpdate event is triggered. This event gives the application an opportunity to check the individual grid cells before they are committed to the grid's copy buffer. If your event procedure sets the Cancel argument to True, the previous value is restored in the cell, the grid retains focus, and the AfterColUpdate event is not triggered. Change the current cell text by setting OldValue to the value wanted to display (other than the previous value). To restore OldValue in the cell and permit the user to move focus off of the cell, set Cancel to False and set the cell to OldValue as follows:

Constructors

Name Description
BeforeColUpdateEventHandler(object, nint)

Methods

Name Description
BeginInvoke(object, BeforeColUpdateEventArgs, AsyncCallback, object)
EndInvoke(IAsyncResult)
Invoke(object, BeforeColUpdateEventArgs)