Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Set Tooltip for UltraGrid SortedColumns Sorting Indicator

Set Tooltip for UltraGrid SortedColumns Sorting Indicator

New Discussion
Rus Van Zant
Rus Van Zant asked on Dec 9, 2015 4:50 PM

Hi,

Bear with me…I don’t have a lot of experience with Infragistics controls, and I’m maintaining some code I didn’t write.  I’m having difficulty setting a tooltip value. A big part of the problem is that I don’t understand exactly what I’m looking at.  I have a winform with an UltraGrid control. The part that I’m missing is that it looks like the grid has DisplayLayout Bands with the Columns set to some text. At run time, it turns into a sorting button, but I can’t find where I would set the tooltip text for that sorting button.

Here’s a picture of the designer.

Here’s a picture at run-time of the sorting button (with the text “Conversation” and the sort triangle) and of the tooltip text I’d like to be able to set.

Here’s a line that is hiding the column.

m_grdMail.DisplayLayout.Bands[0].Columns[ClientUI.TextMessageControl_ColumnConversation()].Hidden = true;

I tried setting the tooltip here, but it didn’t work:
m_grdMail.DisplayLayout.Bands[0].AddButtonToolTipText = “overridden tooltip text”; //does not work

If anyone has any comments or can point me to some documentation, I’d appreciate it.

Thanks!

Sign In to post a reply

Replies

  • 0
    Milko Venkov
    Milko Venkov answered on Dec 4, 2015 6:38 AM

    Hello Rus,

    Thank you for posting in our forum.

    Each Infragistics assembly is equipped with a feature that allows you to quickly and easily change any string value that is displayed to the end user by an Infragistics Windows Forms control/component. The tooltip you are seeing, “Click to toggle sort direction”, is built-in resource string, which you can change by using code like this:

    var rc = Infragistics.Win.UltraWinGrid.Resources.Customizer;

    rc.SetCustomizedString("GroupByButtonToolTip", "overridden tooltip text");

    More about customization of assemblies resource strings you can find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/html/Win_Customizing_Assembly_Resource_Strings.html. And on this link you can find the UltraGrid resource strings reference http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/html/WinGrid_Resource_Strings.html.

    Please let me know if you have any further questions.

    Thank you for using Infragistics Controls.

    • 0
      Rus Van Zant
      Rus Van Zant answered on Dec 9, 2015 4:50 PM

      Hi, Milko,

      That was it!  Thanks for providing the solution as well as documentation resources!

      Rus

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Rus Van Zant
Favorites
0
Replies
2
Created On
Dec 09, 2015
Last Post
10 years, 2 months ago

Suggested Discussions

Tags

Created by

Created on

Dec 9, 2015 4:50 PM

Last activity on

Feb 23, 2026 8:44 AM