Imports Infragistics.Win Imports Infragistics.Win.UltraWinListView Private Sub ConfigureSubItemToolTips(ByVal listView As UltraListView) listView.ItemSettings.SubItemsVisibleInToolTipByDefault = False Dim visiblePosition As Integer = 0 Dim column As UltraListViewSubItemColumn For Each column In listView.SubItemColumns If column.VisibleInDetailsView = DefaultableBoolean.True Then column.VisibleInToolTip = DefaultableBoolean.True column.VisiblePositionInToolTip = visiblePosition visiblePosition += 1 Else column.VisibleInToolTip = DefaultableBoolean.Default End If Next End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinListView; using System.Diagnostics; private void ConfigureSubItemToolTips( UltraListView listView ) { listView.ItemSettings.SubItemsVisibleInToolTipByDefault = false; int visiblePosition = 0; foreach( UltraListViewSubItemColumn column in listView.SubItemColumns ) { if ( column.VisibleInDetailsView == DefaultableBoolean.True ) { column.VisibleInToolTip = DefaultableBoolean.True; column.VisiblePositionInToolTip = visiblePosition; visiblePosition++; } else column.VisibleInToolTip = DefaultableBoolean.Default; } }
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