Tooltip on datagridview control not shown

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 3 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
ericvanvoorthuizen
Posts: 3
Last visit: Tue Jul 18, 2023 5:39 am

Tooltip on datagridview control not shown

Post by ericvanvoorthuizen »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.179
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0

I managed to use tooltips for controls other then the datagridview via https://www.sapien.com/blog/2014/01/30/ ... p-control/
But when using same procedure on a datagridview control the tooltip doesn't show up when hovering over the control.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Tooltip on datagridview control not shown

Post by jvierra »

You will have to write custom code to manage tooltips on a DGV.
ericvanvoorthuizen
Posts: 3
Last visit: Tue Jul 18, 2023 5:39 am

Re: Tooltip on datagridview control not shown

Post by ericvanvoorthuizen »

Thanks for the quick reply, but when searching and trying code to manage it without the Sapien Tooltip-control I experienced the same issue.
While searching other fora someone suggested to set DGV's ShowCellToolTips property to False and that worked.
User avatar
Lembasts
Posts: 406
Last visit: Mon Apr 15, 2024 3:12 pm
Has voted: 1 time
Been upvoted: 1 time

Re: Tooltip on datagridview control not shown

Post by Lembasts »

jvierra wrote: Sat Sep 12, 2020 1:17 am You will have to write custom code to manage tooltips on a DGV.
Its all in the documentation :-)
https://docs.microsoft.com/en-us/dotnet ... etcore-3.1
This topic is 3 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked