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)
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.
精彩评论