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.
Set datagridview ShowCellToolTips property to False
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.";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With