Datagridview Cell tooltip

0
0

Hi, is there a way to allow html in a datagridview cell Tooltip?

 

Thanks Kirk

  • You must to post comments
0
0

Hi Kirk

A scope to my previous answer

If your goal is to put html tooltip for the datagridview cells, unfortunately this feature is not supported.
Datagridview cells are not rendered as widgets but as HTML with a title attribute interpreted by the browser as the tooltip.

Regards

  • You must to post comments
0
0

Hi Kirk
It is possible to apply HTML formatting to the text, with certain restrictions
Here are a couple of examples of how you can do it

Column0.ToolTipText = String.Format(“<font face=\”Microsoft Yahei\” color=\”blue\”>{0}</font>”, “Tooltip Text”);

Column1.ToolTipText = “<b> Bold text</b> Normal text<u> Underlined text </u>  <i> Italic Text</i>”;

Regards.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.