Skip to main content
All docs
V25.2
  • 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

    [DefaultValue(DefaultBoolean.Default)]
    [XtraSerializableProperty]
    public virtual DefaultBoolean AllowHeaderNavigation { get; set; }

    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.

    0

    False

    The value is false.

    1

    Default

    The value is specified by a global option or a higher-level object.

    2

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to AllowHeaderNavigation
    GridView
    .OptionsNavigation .AllowHeaderNavigation
    WinExplorerView
    .OptionsNavigation .AllowHeaderNavigation

    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.

    See Also