Back to Devexpress

DataViewBase.FocusedView Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-fb87687f.md

latest2.4 KB
Original Source

DataViewBase.FocusedView Property

Gets the View which is currently focused.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public DataViewBase FocusedView { get; }
vb
Public ReadOnly Property FocusedView As DataViewBase

Property Value

TypeDescription
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.

See Also

IsFocusedView

FocusedViewChanged

Master-Detail Data Representation

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace