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