Infragistics(R) NetAdvantage(R) Windows Forms
RowLayoutCellNavigationVertical Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridOverride Class : RowLayoutCellNavigationVertical Property

Specifies how cells are navigated when using up and down arrow keys.

Syntax

Visual Basic (Declaration) 
Public Property RowLayoutCellNavigationVertical As RowLayoutCellNavigation
C# 
public RowLayoutCellNavigation RowLayoutCellNavigationVertical {get; set;}

Example

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles ultraGrid1.InitializeLayout
        ' Enable Row-Layout functionality.
        e.Layout.Bands(0).UseRowLayout = True

        ' Navigating cells using Up and Down keys will cause the adjacent cell to be activated.
        ' Default is to snake.
        e.Layout.Override.RowLayoutCellNavigationVertical = RowLayoutCellNavigation.Adjacent
    End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// Enable Row-Layout functionality.
			e.Layout.Bands[0].UseRowLayout = true;

			// Navigating cells using Up and Down keys will cause the adjacent cell to be activated.
			// Default is to snake.
			e.Layout.Override.RowLayoutCellNavigationVertical = RowLayoutCellNavigation.Adjacent;
		}

See Also