TreeList.CellValueChanging Event
Fires when an end-user starts to edit a cell value.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.1.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
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 |
---|---|
ChangedByUser | Gets whether the user changed the value in an editor, or the value is changed in code. |
Column | Gets a column to which the cell processed by an event belongs. Inherited from CellEventArgs. |
Node | Gets the current Tree List node. Inherited from NodeEventArgs. |
OldValue | |
Value | Gets the new value assigned to a cell. |
Remarks
Cell values are modified by means of editors. End-users must click a cell or press the ENTER, SPACE or F2 key when a cell is focused to invoke its editor. When a cell value is first changed (a user types or deletes a character, chooses a value from a dropdown list, etc.) the CellValueChanging event is raised. It provides the parameter whose properties can be used to identify the column and node containing the edited cell and its current value. If an end-user continues editing a cell’s value, the event doesn’t fire.
Note: the CellValueChanging event doesn’t fire when changing cell values via code.