Back to Devexpress

SpreadsheetControl.CellValueChanged Event

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-f645d501.md

latest5.3 KB
Original Source

SpreadsheetControl.CellValueChanged Event

Occurs after a cell value has been changed.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public event CellValueChangedEventHandler CellValueChanged
vb
Public Event CellValueChanged As CellValueChangedEventHandler

Event Data

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

PropertyDescription
ActionIdentifies an action which caused a change of the cell value.
CellGets the cell for which the event is fired. Inherited from SpreadsheetCellEventArgsBase.
ColumnIndexGets the index of the column that contains the cell. Inherited from SpreadsheetCellEventArgsBase.
FormulaGets the formula that is currently contained in the cell. Inherited from SpreadsheetCellEventArgsBase.
FormulaInvariantGets the formula in the invariant culture that is currently contained in the cell. Inherited from SpreadsheetCellEventArgsBase.
OldFormulaGets the cell’s previous formula.
OldFormulaInvariantGets the cell’s previous formula in the invariant culture.
OldValueGets the cell’s previous value.
RowIndexGets the index of the row that contains the cell. Inherited from SpreadsheetCellEventArgsBase.
SheetNameGets the name of the worksheet that contains the cell. Inherited from SpreadsheetCellEventArgsBase.
ValueGets the value currently contained in the cell. Inherited from SpreadsheetCellEventArgsBase.
WorksheetGets the worksheet that contains the cell. Inherited from SpreadsheetCellEventArgsBase.

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

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.

wpf-spreadsheet-control-create-a-data-entry-form/CS/WpfDataEntryFormSample/SpreadsheetBindingManager.cs#L34

csharp
if (control != null)
    control.CellValueChanged -= SpreadsheetControl_CellValueChanged;
control = value;

wpf-spreadsheet-control-create-a-data-entry-form/VB/WpfDataEntryFormSample/SpreadsheetBindingManager.vb#L29

vb
If _control IsNot Nothing Then
    RemoveHandler _control.CellValueChanged, AddressOf SpreadsheetControl_CellValueChanged
End If

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace