Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataGridView ToolTipText not showing

I have data bound DataGridView in a desktop app with columns that have their ToolTipText property set, yet no tool tip is displayed when I hover over grid view (cells or cell headers).

The ShowCellToolTips property of the grid view is true, and I have verified using break points that it is not changed programmatically before I mouse over.

I have tried creating a CellToolTipTextNeeded event handler to see what the tool tip text was, but the event handler is never called.

Is there anything I have missed?

Thanks, Rob

Edit: We're using framework 2.0.

like image 343
Robert Gowland Avatar asked Dec 23 '08 17:12

Robert Gowland


2 Answers

Set datagridview ShowCellToolTips property to False

like image 73
Keramat Avatar answered Oct 12 '22 15:10

Keramat


I had a simular problem but was able to correct it by setting the ShowCellToolTip to true on my DataGridView. Once I did that I was able to send the following code and everything worked fine.

tableDocTypes.ShowCellToolTips = true;
tableDocTypes.Rows[i].Cells[columnFormCabinet.Index].ToolTipText = "Cabinet is not defined on the optical server.";
like image 25
JoBaxter Avatar answered Oct 12 '22 13:10

JoBaxter