Gets/sets whether sub-items appear by default in the tooltips that are displayed when the
TipStyle property is set to 'Automatic'.
The following code sample demonstrates how to use the VisibleInToolTip and VisiblePositionInToolTip properties to control which sub-item values appear in the tooltip displayed by the UltraListView control, and also to control the order in which they appear:
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
'Declaration
Public Property SubItemsVisibleInToolTipByDefault As Boolean
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;
}
}
'Declaration
Public Property SubItemsVisibleInToolTipByDefault As Boolean
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