[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Expand]Controls and Libraries
 [Collapse]Common Features
  [Expand]Data Binding Common Concepts
  [Expand]Data Source Wizard
  [Expand]Application Appearance and Skin Colors
  [Expand]Filtering UI Context
  [Expand]High DPI Support
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML Text Formatting
  [Collapse]Tooltip Management
    How to: Customize Tooltips for XtraGrid and CheckBox Using the ToolTipController
    How to: Customize Tooltips Using the Default ToolTipController
    How to: Add Tooltips for the Row Indicator in XtraGrid
    How to: Create SuperToolTips In Code
    ToolTipController Component
    ToolTip Types
    Setting ToolTips for DevExpress Controls
    Setting ToolTips for Third-Party Controls
    Creating SuperToolTips
    Hyperlinks in Tooltips
  [Expand]Saving and Restoring Layouts to a File, Stream and System Registry
   Clipboard - Copy and Paste Operations. Data Formatting
   Version Compatibility: Default Property Values
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Customize Tooltips for XtraGrid and CheckBox Using the ToolTipController

This example demonstrates a way of using the tooltip controller to provide centralized control over the appearance of hints displayed by the Grid Control and a standard CheckBox. It assumes that the form already contains these controls.

To begin, place a ToolTipController component on the form. Modify the component's hint settings as shown in the image below.

Then you need to bind the tooltip controller to the Grid Control. DevExpress controls and components can be bound to a tooltip controller via their ToolTipController property. This property is declared in the base classes for controls, container controls and container components. Once a tooltip controller has been assigned to a control, it controls the appearance and behavior of the control's hints. Hint settings for DevExpress controls whose ToolTipController properties are not initialized are controlled by the static ToolTipController.DefaultController property.

Use the XtraGrid's BaseControl.ToolTipController property to bind the tooltip controller:

The following image shows the hint being displayed for the grid's cell with a clipped text. The hint is displayed using the settings of the assigned ToolTipController.

A standard check box does not support the DevExpress.Utils.IToolTipControlClient interface, but it can also display hints controlled by a tooltip controller.

When a ToolTipController component is placed onto a form, a ToolTip property is automatically published by controls that do not support the DevExpress.Utils.IToolTipControlClient interface. Use this property to specify the hint's text for the check box as shown in the image below.

The next image shows the hint activated for the check box.

All of the above steps can be performed programmatically.

Is this topic helpful?​​​​​​​