DataViewBase.NavigationStyle Property
Gets or sets whether row and cell focus is allowed. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| GridViewNavigationStyle | Cell | A value that specifies whether row and cell focus 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 GridViewNavigationStyle.Cell, the View displays the focused row and the focused cell. In this case, users are allowed to edit cell values.
The cell focus is hidden if the NavigationStyle property is set to GridViewNavigationStyle.Row. In this case, users cannot edit cell values.
To display neither the focused row nor the focused cell, set the NavigationStyle property to GridViewNavigationStyle.None. In this case, data cannot be edited.
Refer to the following help topic for more information: Focus, Navigation, Selection.