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

DataViewBase.FocusedView Property

Gets the View which is currently focused.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.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. 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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FocusedView property.

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