'宣言 Public Property RowLayoutCellNavigationVertical As RowLayoutCellNavigation
public RowLayoutCellNavigation RowLayoutCellNavigationVertical {get; set;}
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).RowLayoutStyle = RowLayoutStyle.ColumnLayout ' 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
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].RowLayoutStyle = RowLayoutStyle.ColumnLayout; // 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; }