Xceed DataGrid for WPF v7.2 Documentation
NavigationBehavior Property (DataGridControl)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridControl Class : NavigationBehavior Property
Gets or sets a value indicating how the focus navigates from one element to another in the grid.
Syntax
'Declaration
 
Public Property NavigationBehavior As NavigationBehavior
'Usage
 
Dim instance As DataGridControl

Dim value As NavigationBehavior

 

instance.NavigationBehavior = value

 

value = instance.NavigationBehavior
public NavigationBehavior NavigationBehavior {get; set;}

Property Value

A NavigationBehavior indicating how the focus navigates from one element to another in the grid. By default, NavigationBehavior.CellOnly.

Member Description
None Navigation is not permitted in a grid. Elements cannot receive the focus.

The CurrentItem and SelectedItem/SelectedItems properties must be set to a null reference (Nothing in Visual Basic) in order to reset them when the NavigationBehavior property is set to None.

RowOnly Navigation is row based. Cells will never receive the focus.
CellOnly Navigation is cell based.
RowOrCell Navigation is row based unless a cell in a row is clicked. If a cell is clicked, then navigation from cell to cell within the row is permitted. Once the focus is moved out of the row, navigation returns to row based.

Remarks

The CurrentItem and SelectedItem/SelectedItems properties must be set to a null reference (Nothing in Visual Basic) in order to reset them when the NavigationBehavior property is set to None.

Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataGridControl Class
DataGridControl Members