Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGridViewColumn::ToolTipText Property

 

Gets or sets the text used for ToolTips.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property String^ ToolTipText {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The text to display as a ToolTip for the column.

The column's ToolTip displays when the mouse pointer rests on the column header.

The following code example shows how to set a column's ToolTip. This code example is part of a larger code example provided for the DataGridViewColumn class.

void ToolTips()
{
   DataGridViewColumn^ firstColumn = dataGridView->Columns[ 0 ];
   DataGridViewColumn^ thirdColumn = dataGridView->Columns[ 2 ];
   firstColumn->ToolTipText = L"This column uses a default cell.";
   thirdColumn->ToolTipText = L"This column uses a template cell."
   L" Style changes to one cell apply to all cells.";
}


.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft