Grid navigation settings and methods to handle user input such as KeyUp, KeyDows etc.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public sealed class GridNavigarion
Visual Basic
<TypeConverterAttribute(GetType(ExpandableObjectConverter))>
Public NotInheritable Class GridNavigarion
Visual C++
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public ref class GridNavigarion sealed
F#
[<SealedAttribute>]
[<TypeConverterAttribute(typeof(ExpandableObjectConverter))>]
type GridNavigarion =  class end

Examples

Shows how to navigate programmatically in the Grid
 Copy imageCopy
public void ExampleNavigation(Grid grid)
{
    //If the user presses the left arrow, the grid will move the focus to the first visible row 
    //on the same hierarchical level
    grid.Navigation.JumpToFirstChildOnKeyLeft = true;

    //If the user presses the right arrow, the grid will move the focus to the last visible row 
    //on the same hierarchical level
    grid.Navigation.JumpToLastChildOnKeyRight = true;

    //The grid can move the focus between different hierarchical levels 
    //when the user presses key up or key down
    grid.Navigation.KeepLevelOnKeyUpDown = true;

    //Move the focus to the previous row and ensure it visible
    grid.Navigation.Up();

    //Move the focus to the end and ensure the focused row visible
    grid.Navigation.End();

    //Subscribe for events
    grid.FocusedRowChanged += OnFocusedRowChanged;
}

void OnFocusedRowChanged(object sender, FocusedRowEventArgs e)
{
    //Your code...
}

Inheritance Hierarchy

System..::..Object
  Dapfor.Net.Ui..::..Grid..::..GridNavigarion

See Also