Skip to main content

DataViewBase.FocusedView Property

Gets the View which is currently focused.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v14.2.Core.dll

#Declaration

public DataViewBase FocusedView { get; }

#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. The FocusedView property can be used to determine which View currently has focus. To specify the focused cell within a View, use the GridViewBase.FocusedColumn and DataViewBase.FocusedRowHandle properties.

The FocusedView property merely indicates the internal grid control's focus position. Whether a particular View has focus can be determined by inspecting the DataViewBase.IsFocusedView property's value.

When moving focus between the Views the DataViewBase.FocusedViewChanged event is raised.

See Also