Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Imports System.Diagnostics Private Sub Button25_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button25.Click ' Set TabStop on a column. Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(0).Columns(1) column.TabStop = False ' Get two cells from the same column. One from first row, and one from the ' second row. Dim cell1 As UltraGridCell = Me.UltraGrid1.Rows(0).Cells(column) Dim cell2 As UltraGridCell = Me.UltraGrid1.Rows(0).Cells(column) ' You can override the column setting and set TabStop on an individual cell. ' In this case we are overrriding the TabStop on cell1. cell1.TabStop = DefaultableBoolean.True ' Following code writes out whether tabstop is turned on on cell1 and cell2. Both of ' these cells belong to the column that we disabled the tab-stopping on. However we ' set TabStop to True explicitly on cell1. So cell1.IsTabStop should be true but ' cell2.IsTabStop should pickup the setting from the column and write out false. Debug.WriteLine("Cell1.IsTabStop = " & cell1.IsTabStop) Debug.WriteLine("Cell2.IsTabStop = " & cell2.IsTabStop) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button25_Click(object sender, System.EventArgs e) { // Set TabStop on a column. UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns[1]; column.TabStop = false; // Get two cells from the same column. One from first row, and one from the // second row. UltraGridCell cell1 = this.ultraGrid1.Rows[0].Cells[column]; UltraGridCell cell2 = this.ultraGrid1.Rows[0].Cells[column]; // You can override the column setting and set TabStop on an individual cell. // In this case we are overrriding the TabStop on cell1. cell1.TabStop = DefaultableBoolean.True; // Following code writes out whether tabstop is turned on on cell1 and cell2. Both of // these cells belong to the column that we disabled the tab-stopping on. However we // set TabStop to True explicitly on cell1. So cell1.IsTabStop should be true but // cell2.IsTabStop should pickup the setting from the column and write out false. Debug.WriteLine( "Cell1.IsTabStop = " + cell1.IsTabStop ); Debug.WriteLine( "Cell2.IsTabStop = " + cell2.IsTabStop ); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2