GridOptionsNavigation.AllowHeaderNavigation Property
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
Declaration
Property Value
| 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. |
|
| False | The value is false. |
|
| Default | The value is specified by a global option or a higher-level object. |
|
Property Paths
You can access this nested property as listed below:
| Object Type | Path to AllowHeaderNavigation |
|---|---|
| GridView |
|
| WinExplorerView |
|
Remarks
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;
}
}
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.