Skip to main content

SpreadsheetCellEventArgs.Action Property

Identifies an action which caused a change of the cell value.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public CellValueChangedAction Action { get; }

Property Value

Type Description
CellValueChangedAction

A CellValueChangedAction enumeration value identifying an action.

Available values:

Name Description
Edit

End-user has modified the cell value using worksheet editors.

UndoRedo

Cell value has been changed by executing the undo or redo command.

Paste

New value has been pasted into the cell.

API

Cell value has been modified programmatically.

Remarks

Use the Action property to determine whether a change of the cell value is caused by end-user editing, an undo/redo operation or a programmatic cell value modification.

Tip

The WorkbookEventOptions.RaiseOnModificationsViaAPI option should be set to true to raise the SpreadsheetControl.CellValueChanged or SpreadsheetControl.CellValueChanged event when the cell value is modified programmatically.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Action property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also