Back to Devexpress

TreeList.CellValueChanging Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-30386b28.md

latest2.9 KB
Original Source

TreeList.CellValueChanging Event

Fires when an end-user starts to edit a cell value.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DXCategory("Property Changed")]
public event CellValueChangedEventHandler CellValueChanging
vb
<DXCategory("Property Changed")>
Public Event CellValueChanging As CellValueChangedEventHandler

Event Data

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

PropertyDescription
ChangedByUserGets whether the user changed the value in an editor, or the value is changed in code.
ColumnGets a column to which the cell processed by an event belongs. Inherited from CellEventArgs.
NodeGets the current Tree List node. Inherited from NodeEventArgs.
OldValue
ValueGets 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.

See Also

CellValueChanged

AutoSelectAllInEditor

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace