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

ColumnView.FocusedRowObjectChanged Event

Fires after focus is moved to another row object.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.2.dll

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.

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