Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Expressions
  [Expand]Behaviors
  [Expand]Application Appearance
  [Expand]Filtering UI Context
  [Expand]High DPI Support
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML Text Formatting
  [Expand]Menus
  [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
   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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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.

How would you rate this topic?​​​​​​​