ColumnView.FocusedRowObjectChanged Event
Fires after focus is moved to another row object.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
[DXCategory("Property Changed")]
public event FocusedRowObjectChangedEventHandler FocusedRowObjectChanged
Event Data
The FocusedRowObjectChanged event's data class is DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventArgs.
Remarks
The FocusedRowObjectChanged event fires after focus is moved to another row object. The ColumnView.FocusedRowChanged event can also be handled to reflect changes to the focused row position. However, these events are not identical.
The ColumnView.FocusedRowChanged event fires when the position of the focused row (ColumnView.FocusedRowHandle) changes. This can happen for the following reasons:
- another row is focused;
- focus is persisted in the same row, but the order of rows or the position of the focused row changes (for instance, when data is re-sorted or filtered).
The FocusedRowObjectChanged event fires in the first case, but not in the second case.
To identify the newly focused row, use the event’s FocusedRowHandle parameter or the ColumnView.FocusedRowHandle property. The event’s Row parameter specifies the row object. In server modes, the Row parameter specifies the row’s key.