I want to update all the ToolTipTexts of cells in one column in the UltraGrid automatically by using the dataTable that is the dataSource of my grid. I need it to show a different description for each cell in this column, but not to use event such as MouseEnterElement that always entered to that function.
thanks.
Hi,
Thank you for posting in our forums.
What you could do is to hide the Tooltip column from the grid and then in the InitializeRow event, you could set the tooltip for each cell, accessing the value from the hidden column and then assigning it to the ToolTipText property. For more information about this property, please visit this link:
http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/HTML/WinGrid_Display_ToolTips.html
I have attached a sample, in order to demonstrate this suggestion.
Please let me know if you have any additional questions.
First, thanks about the event (InitializeRow).
I have another question: why can't I see the ToolTipText never? I think I read all posts about the toolTip but no one helps. May you have an idea? Maybe another properties of ultragrid affect the tooltip?
I wrote this row before and after I update the DataSource of the ultragrid:
ultraGrid1.DisplayLayout.Override.TipStyleCell = TipStyle.Show;
Thanks.
Thank you for the reply.
Are you able to run the sample I sent you in my first reply? It loads the tooltips from the data source and displays them on the cells of the grid. If you are having issues implementing this feature, please send me a sample and I will be glad to modify it in order to fulfill your requirements and show the tooltips.
I am looking forward to hearing from you.
Thanks. your sample works well, but when I put the same code in my program, the tooltip is never shown. (maybe it relates to other classes in my project, but I didn't find the reason to this behavior.) I can't to send you my project, it's complicated..., so I think I'll use with external tooltip (what I don't want to use with...)
thanks you for all.