'宣言 Public Enum TabNavigation Inherits System.Enum
public enum TabNavigation : System.Enum
メンバ | 解説 |
---|---|
NextCell | 次のセル。[Tab]キーを押すと、グリッドコントロール内の次のセルにフォーカスが移動します。 |
NextControl | 次のコントロール。[Tab]キーを押すと、フォームのタブオーダーに従って次のコントロールにフォーカスが移動します。 |
NextControlOnLastCell | 最後のセルの次のコントロール。[Tab] キーを押すと、最後のセルがアクティブな場合に限り、フォームのタブ オーダーに従って次のコントロールにフォーカスが移動します。それ以外では、次のセルからセルにフォーカスが移動します。 |
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 ' InitializeLayout gets fired for the UltraGrid's layout as well as when printing. If e.Layout.IsPrintLayout Then ' This is a print layout. When printing, use White as the background color. e.Layout.Appearance.BackColor = Color.White ' Hide the second band (band 1) when printing so rows from that band and its ' descendant bands don't show up in the print. e.Layout.Bands(1).Hidden = True Else e.Layout.Appearance.BackColor = Color.Gray End If ' Set the behaviour of tab keys in the UltraGrid. Me.UltraGrid1.DisplayLayout.TabNavigation = TabNavigation.NextCell 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) { // InitializeLayout gets fired for the UltraGrid's layout as well as when printing. if ( e.Layout.IsPrintLayout ) { // This is a print layout. When printing, use White as the background color. e.Layout.Appearance.BackColor = Color.White; // Hide the second band (band 1) when printing so rows from that band and its // descendant bands don't show up in the print. e.Layout.Bands[1].Hidden = true; } else { e.Layout.Appearance.BackColor = Color.Gray; } // Set the behaviour of tab keys in the UltraGrid. this.ultraGrid1.DisplayLayout.TabNavigation = TabNavigation.NextCell; }