DataGridView and disabling tooltip on only one column

  • Thread starter Richard Lewis Haggard
  • Start date
R

Richard Lewis Haggard

How can tooltips be enabled for all columns of a DataGridView except for one
specific column?

I have a DataGridView control for which I want to enable tooltips in general
with the exception of in one particular column which may have huge amounts
of data in it (don't ask). When the tooltip for this column displays, it is
possible for a huge tooltip to blossom in the screen and this monstrosity
generally irritates everyone unfortunate enough to find themselves inflicted
with its presence. If I do the standard thing and intercept the
dataGridView_CellFormatting event and set this column's tooltip to an empty
string then the system just manufactures a default tooltip for me and
displays it. If I feed it a tooltip string of a single space then a tiny
little tooltip with no content displays. While better, this is still not
what the client would like to see. I've also tried fielding the
CellToolTipNeeded event but this doesn't seem to ever get called.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top