Back to Devexpress

GridColumn.ToolTip Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-57318f71.md

latest2.7 KB
Original Source

GridColumn.ToolTip Property

Gets or sets a column hint.

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

A custom tooltip for the column.

|

Remarks

If the ShowColumnHeaderHints option is enabled, the view displays tooltips for truncated captions in column headers. The default tooltip contains the Caption property’s non-truncated value.

Use the ToolTip property to specify a custom tooltip. A custom tooltip is displayed regardless of whether the caption is truncated.

Example

The code below assigns a custom tooltip to a grid column.

csharp
gridView1.Columns["productPrice"].ToolTip = "Price of the product per item";
vb
gridView1.Columns("productPrice").ToolTip = "Price of the product per item"

See Also

ShowCaption

ShowColumnHeaderHints

Data Grid Tooltips

Hints and Tooltips

GridColumn Class

GridColumn Members

DevExpress.XtraGrid.Columns Namespace