GridColumn.ToolTip Property

Gets or sets a column hint.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue("")]
[XtraSerializableProperty]
public virtual string ToolTip { get; set; }
<DXCategory("Appearance")>
<DefaultValue("")>
<XtraSerializableProperty>
Public Overridable Property ToolTip As String

Property Value

Type Default Description
String

String.Empty

A custom tooltip for the column.

Remarks

When the View's GridOptionsHint.ShowColumnHeaderHints option is set to true, column headers can show tooltips. The default tooltip is equal to the column's caption (GridColumn.Caption). It shows non-trimmed, even if the caption itself is trimmed. To see a tooltip, users need to position their mouse pointer over the column's header.

The code sample below illustrates how to add a custom tooltip to a grid column.

GC_ToolTip


gridView1.Columns["productPrice"].ToolTip = "Price of the product per item";
See Also