DataViewBase.FocusedView Property
Gets the View which is currently focused.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
DataViewBase | A DataViewBase descendant which represents the focused View. |
Remarks
When the grid control is working in master-detail mode, it can display a number of Views simultaneously. For instance, it can display the main View together with expanded detail clones. Use the FocusedView property to determine which View currently has focus.
The FocusedView property returns the master view if detail views are not focused. When a detail view has focus, the FocusedView property returns the focused detail view.
To specify the focused cell within a View, use the DataControlBase.CurrentColumn and DataViewBase.FocusedRowHandle properties.
The FocusedView property merely indicates the internal grid control’s focus position. You can determine whether a particular View is focused using the DataViewBase.IsFocusedView property.
When moving focus between the Views, the DataViewBase.FocusedViewChanged event is raised.