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

ColumnView.CellValueChanged Event

Fires immediately after a cell value has been changed.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.1.dll


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

Event Data

The CellValueChanged 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.


The CellValueChanged event fires when:

  • a user has changed the in-place editor’s value and now closes this editor;
  • the ColumnView.SetRowCellValue method or other Grid API was used to change a cell value in code.

The event does not fire when a cell value changes on a data source level.


The following sample code handles the ColumnView.CellValueChanged event to update the FullName column value after the FirstName column value has been changed.

using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.BandedGrid;

private void bandedGridView1_CellValueChanged(object sender, CellValueChangedEventArgs e) {
    BandedGridView view = sender as BandedGridView;
    if (view == null) return;
    if (e.Column.Caption != "FirstName") return;
    string cellValue = e.Value.ToString() + " " + view.GetRowCellValue(e.RowHandle, view.Columns["LastName"]).ToString();
    view.SetRowCellValue(e.RowHandle, view.Columns["FullName"], cellValue);
See Also