windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-cc09f3a8.md
Fires after focus is moved to another row object.
Namespace : DevExpress.XtraGrid.Views.Base
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DXCategory("Property Changed")]
public event FocusedRowObjectChangedEventHandler FocusedRowObjectChanged
<DXCategory("Property Changed")>
Public Event FocusedRowObjectChanged As FocusedRowObjectChangedEventHandler
The FocusedRowObjectChanged event's data class is DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventArgs.
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:
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 snippet (auto-collected from DevExpress Examples) contains a reference 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.
connect-winforms-grid-to-backend-using-middletier-server/CS/WinForms.Client/MainForm.cs#L33
gridView.CustomRowCellEdit += GridView_CustomRowCellEdit;
gridView.FocusedRowObjectChanged += GridView_FocusedRowObjectChanged;
See Also