Version

ToolTipText Property (SummaryValue)

Specifies the tooltip to display when the user hovers the mouse over the header.
Syntax
'Declaration
 
Public Property ToolTipText As String
public string ToolTipText {get; set;}
Remarks

Specifies the tooltip to display when the user hovers the mouse over the header. No tooltip is displayed if this property is set to null or empty string.

Example
The following code shows which objects expose ToolTipText property.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click

        ' Add a summary.
        Dim summary As SummarySettings = _
            Me.ultraGrid1.DisplayLayout.Bands(0).Summaries.Add("sum", _
            SummaryType.Sum, _
            Me.ultraGrid1.DisplayLayout.Bands(0).Columns(0), _
            SummaryPosition.UseSummaryPositionColumn)

        ' Set the tooltip on the summary settings object.
        summary.ToolTipText = String.Format("Sum of column {0}.", summary.SourceColumn.Header.Caption)

        ' Tooltip can be set on individual summary value objects as well, in case  you
        ' want to display a different tooltip based on the calculated value. A good place
        ' to set such summary value specific tool tips is in SummaryValueChanged event.
        Me.ultraGrid1.Rows.SummaryValues("sum").ToolTipText = String.Format("Sum of column {0}.", summary.SourceColumn.Header.Caption)

        ' Set tool tips on headers.
        Dim col As UltraGridColumn
        For Each col In Me.ultraGrid1.DisplayLayout.Bands(0).Columns
            col.Header.ToolTipText = String.Format("Sample tool tip for {0} column.", col.Header.Caption)
        Next

        ' Set tool tips on rows.
        Dim row As UltraGridRow
        For Each row In Me.ultraGrid1.Rows
            row.ToolTipText = String.Format("Sample tool tip for {0} index row.", row.Index)

            ' Tool tip can be set on individual cells as well.
            row.Cells(0).ToolTipText = "Sample cell tool tip."
        Next
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			// Add a summary.
			SummarySettings summary =
				this.ultraGrid1.DisplayLayout.Bands[0].Summaries.Add( "sum",
				SummaryType.Sum, 
				this.ultraGrid1.DisplayLayout.Bands[0].Columns[0], 
				SummaryPosition.UseSummaryPositionColumn );

			// Set the tooltip on the summary settings object.
			summary.ToolTipText = string.Format( "Sum of column {0}.", summary.SourceColumn.Header.Caption );

			// Tooltip can be set on individual summary value objects as well, in case  you
			// want to display a different tooltip based on the calculated value. A good place
			// to set such summary value specific tool tips is in SummaryValueChanged event.
			this.ultraGrid1.Rows.SummaryValues[ "sum" ].ToolTipText = string.Format( "Sum of column {0}.", summary.SourceColumn.Header.Caption );

			// Set tool tips on headers.
			foreach ( UltraGridColumn col in this.ultraGrid1.DisplayLayout.Bands[0].Columns )
			{
				col.Header.ToolTipText = string.Format( "Sample tool tip for {0} column.", col.Header.Caption );
			}

			// Set tool tips on rows.
			foreach ( UltraGridRow row in this.ultraGrid1.Rows )
			{
				row.ToolTipText = string.Format( "Sample tool tip for {0} index row.", row.Index );

				// Tool tip can be set on individual cells as well.
				row.Cells[0].ToolTipText = "Sample cell tool tip.";
			}
		}
Requirements

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

See Also