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

DataViewBase.NavigationStyle Property

Gets or sets whether row and cell focusing is allowed. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public GridViewNavigationStyle NavigationStyle { get; set; }

Property Value

Type Description
GridViewNavigationStyle

A GridViewNavigationStyle enumeration value that specifies whether row and cell focusing is allowed.

Available values:

Name Description
Row

A View displays only the focused row. The focused cell is not displayed. Data editing is not allowed.

Cell

A View displays the focused row and focused cell. Data editing is allowed.

None

A View displays neither the focused row nor the focused cell. Data editing is not allowed.

Remarks

If the NavigationStyle property is set to GridViewNavigationStyle.Cell, the View displays the focused row and the focused cell. In this instance, end-users are allowed to edit cell values. Setting the NavigationStyle property to GridViewNavigationStyle.Row, hides the cell focus. In this case, end-users cannot edit cell values. If you want to display neither the focused row nor the focused cell, set the NavigationStyle property to GridViewNavigationStyle.None. Note that data editing is not allowed.

To learn more, see Focus and Navigation.

The following code snippets (auto-collected from DevExpress Examples) contain references to the NavigationStyle 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