FlexGrid for WinForms
UserData ToolTips for a Cell Style
Show AllShow All
Hide AllHide All

To add ToolTips that display UserData for a cell style, use C1FlexGrid's MouseMove event to get the CellStyle.UserData property and display it in a ToolTip control.

  1. Locate the ToolTip control in the Toolbox and add it to the form.
  2. In the Form_Load event, create a custom CellStyle for columns and a custom CellStyle for rows, and assign the styles to a column and row in the grid. For more information on how to create CellStyles, see the Setting the Background Color of Columns and Rows topic.

    To write code in Visual Basic

    To write code in C#

  3. Add the following MouseMove event:

    To write code in Visual Basic

    To write code in C#

This topic illustrates the following:

The ToolTip appears within the CellStyle.


See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback