Specifies the navigation in the Grid.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
| C# |
|---|
public Grid..::..GridNavigarion Navigation { get; } |
| Visual Basic |
|---|
Public ReadOnly Property Navigation As Grid..::..GridNavigarion Get |
| Visual C++ |
|---|
public: property Grid..::..GridNavigarion^ Navigation { Grid..::..GridNavigarion^ get (); } |
| F# |
|---|
member Navigation : Grid..::..GridNavigarion with get |
Property Value
Type: Grid..::..GridNavigarionThe navigation.
Examples
Shows how to navigate programmatically in the Grid
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... } | |