DataGridView.ShowCellToolTips Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether or not ToolTips will show when the mouse pointer pauses on a cell or the user navigates to the cell using the keyboard.
public:
property bool ShowCellToolTips { bool get(); void set(bool value); };
public bool ShowCellToolTips { get; set; }
member this.ShowCellToolTips : bool with get, set
Public Property ShowCellToolTips As Boolean
Property Value
true
if cell ToolTips are enabled; otherwise, false
.
Remarks
When the value of this property is true
and the mouse pointer is over a cell or the user has navigated to the cell using the keyboard, the cell displays a ToolTip when one of the following conditions is met:
The value of the DataSource property is not
null
or the value of the VirtualMode property istrue
, and a handler for the CellToolTipTextNeeded event sets the DataGridViewCellToolTipTextNeededEventArgs.ToolTipText property to a value other than String.Empty.The ToolTipText property of the cell has a value other than String.Empty. Setting this property has no effect when there is a CellToolTipTextNeeded event handler because getting the value of the property automatically raises the event and returns the ToolTip text specified in the event handler.
The cell value is truncated in the cell display. When the value of the cell ToolTipText property value is String.Empty, the full value of the truncated cell value is displayed in the ToolTip.