Export (0) Print
Expand All
Expand Minimize

DataGridView.ShowCellToolTips Property

Gets or sets a value indicating whether or not ToolTips will show when the mouse pointer pauses on a cell.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public bool ShowCellToolTips { get; set; }
/** @property */
public boolean get_ShowCellToolTips ()

/** @property */
public void set_ShowCellToolTips (boolean value)

public function get ShowCellToolTips () : boolean

public function set ShowCellToolTips (value : boolean)

Not applicable.

Property Value

true if cell ToolTips are enabled; otherwise, false.

When the value of this property is true and the mouse pointer is over a cell, the cell displays a ToolTip when one of the following conditions is met:

  • The value of the DataSource property is not a null reference (Nothing in Visual Basic) or the value of the VirtualMode property is true, 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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft