开发者

Suppressing the automatic tooltip on a DevExpress WPF GridControl - possible?

开发者 https://www.devze.com 2023-02-04 09:47 出处:网络
I\'m using the DevExpress WPF grid control.When you hover the mouse over a grid cell, and that grid cell is too small to display the entire value, a tooltip is automatically generated containing the f

I'm using the DevExpress WPF grid control. When you hover the mouse over a grid cell, and that grid cell is too small to display the entire value, a tooltip is automatically generated containing the full value, like this: (sorry, print-screen doesn't capture the mouse pointer)

Suppressing the automatic tooltip on a DevExpress WPF GridControl - possible?

Is there any way to suppress this? Ideally, i'd like to suppress it for only certain grid columns if possible.

The MSDN documentation for the event FrameworkElement.ToolTipOpening (exposed by the grid column) says:

To prevent a tooltip from appearing in the UI, your handler for ToolTipOpening can mark the ToolTipEventArgs event data handled.

However, I've tried that, and it doesn't work in this case. Other posts on t开发者_JS百科he web refer to using a TooltipController, but since I'm using the WPF grid, there's no such class (that I can see).


You can forbid toltip by setting the column's Settings.ShowTooltipForTrimmedText to false.

0

精彩评论

暂无评论...
验证码 换一张
取 消