How to enable DGV cell tooltips

Answered
0
0

I have show cell tooltips set to true but I do not see any tooltips when hovering over a cell. Is there something I need to do in order to see them?

Thanks

Nic

  • You must to post comments
Best Answer
0
0

Hi Nic,

I have tried this and it works:

this.dataGrid1[0,0].ToolTipText = “Test Cell 1”;

this.dataGrid1[1,0].ToolTipText = “Test Cell 2”;

The cell tooltips and error message use the browser’s tooltips and not the tooltip widget.

Best,

Luca

 

  • You must to post comments
0
0

Hi Chris,

I have tried it in a simple sample and it worked ok:

tooltip

What browser are you using. Any chance to send me the complete code ?
You can either post it here or send it to frankATiceteagroup.com

Thanks in advance !

Best regards
Frank

Attachment
  • Chris Turner
    I am not able to send you the complete code and the grid is a reusable component with a lot of dependencies, but I what I have found that the tool tip works perfect when there is enough rows from the search to create a scroll bar but otherwise does not show. I will send you a pic. Its a databound grid except for the image column.
  • You must to post comments
0
0

Hi Luca,

I tried this in 1.4.35.0 and it did not work.

I tried to set the tool tip on a image column on individual cells in a loop as in the code below

grdProducts(0, row.Index).ToolTipText = “Stock available : ” & articles.Articles(0).TotalQuantityStockAvailable.ToString
grdProducts(0, row.Index).Style.BackColor = Drawing.Color.Red
row.Cells(0).Value = “images/box_open_24.png”

This successfully colors the cell red , and places a image in them, but will not put a tooltiptext on the cell. The grid is enabled to show cell tool tips.

Thanks

Chris

 

  • You must to post comments
0
0

Thanks Luca,

That works perfectly.

Nic

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.