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

ColumnView.RowUpdated Event

Occurs after the modified focused row has been saved to the underlying data source.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.1.dll

Declaration

[DXCategory("Action")]
public event RowObjectEventHandler RowUpdated

Event Data

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

Property Description
Row Gets the processed row.
RowHandle Gets the row’s handle (position). For the ColumnView.RowUpdated event, this property specifies the previous handle (position) of the currently processed row. Inherited from RowEventArgs.

Remarks

This event occurs after the modified focused row has been saved to the underlying data source.

Assume that the data source contains a calculated column. It’s value is automatically calculated by the data source, based upon the values of other fields. When a new record is added within a grid, the calculated column’s value can be accessed only after this record has been saved to the data source. So, you can use the RowUpdated event to access this value.

Note

The event’s RowHandle parameter specifies the previous handle (position) of the row before the RowUpdated event was raised. Do not use this parameter to identify the current row. Instead, use the event’s Row parameter.

The RowUpdated event occurs after the ColumnView.ValidateRow event, which is fired before the modified row is saved to the data source.

To save the focused row to the data source, the ColumnView.UpdateCurrentRow method can be used.

Note

By default, if an exception is raised within a RowUpdated event handler, it is silently swallowed by the grid control. To prevent exceptions from being caught internally by the grid control, you can set the DevExpress.Data.DataControllerBase.CatchRowUpdatedExceptions static property to false on the application startup.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RowUpdated 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.

See Also