windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsnavigation.md
Gets or sets whether a user can focus column headers and navigate between them with the keyboard.
Namespace : DevExpress.XtraGrid.Views.Grid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean AllowHeaderNavigation { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property AllowHeaderNavigation As DefaultBoolean
| Type | Default | Description |
|---|---|---|
| DefaultBoolean | Default |
A DefaultBoolean value that specifies whether a user can focus column headers and navigate between them with the keyboard.
|
Available values:
| Name | Description | Return Value |
|---|---|---|
| True |
The value is true.
|
0
| | False |
The value is false.
|
1
| | Default |
The value is specified by a global option or a higher-level object.
|
2
|
You can access this nested property as listed below:
| Object Type | Path to AllowHeaderNavigation |
|---|---|
| GridView |
.OptionsNavigation .AllowHeaderNavigation
| | WinExplorerView |
.OptionsNavigation .AllowHeaderNavigation
|
Use the AllowHeaderNavigation property to activate or deactivate keyboard navigation to column headers for an individual View:
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.Utils;
public partial class Form1 : XtraForm {
public Form1() {
InitializeComponent();
gridView1.OptionsNavigation.AllowHeaderNavigation = DefaultBoolean.True;
}
}
Imports DevExpress.XtraEditors
Imports DevExpress.XtraGrid.Views.Grid
Imports DevExpress.Utils
Public Partial Class Form1
Inherits XtraForm
Public Sub New()
InitializeComponent()
gridView1.OptionsNavigation.AllowHeaderNavigation = DefaultBoolean.True
End Sub
End Class
To control keyboard navigation to column headers in the entire application, use the WindowsFormsSettings.KeyboardNavigationExtensions property.
For a list of related keyboard navigation capabilities, refer to the following help topic: Keyboard Navigation.
See Also