Skip to main content
A newer version of this page is available. .

ColumnView.CellValueChanging Event

Fires in response to changing the edit value.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.1.dll

Declaration

[DXCategory("Property Changed")]
public event CellValueChangedEventHandler CellValueChanging

Event Data

The CellValueChanging event's data class is CellValueChangedEventArgs. The following properties provide information specific to this event:

Property Description
Column Gets the column that contains the processed cell.
RowHandle Gets the handle of the row that contains the processed cell.
Value Gets the current cell value.

Remarks

The CellValueChanging event is raised each time the edited value is being changed (the user types or deletes a character, chooses a value from the dropdown list, etc.). The event provides a parameter whose properties can be used to identify the row and column containing the edited cell and its current value.

Note: the CellValueChanging event doesn’t fire when changing cell values via code. Handle this event if you need to provide immediate response to end-user actions. For instance, you may close the editor and focus the next cell when the edit value’s length exceeds the predefined value.

See Also