Hi,
I added a cellbutton to my wingrid using column.Style = UltraWinGrid.ColumnStyle.EditButton. Now I want to add a tooltip for the cellbutton.How can I do this. I could not find a tooptip property...
Thanks for any help!
Cheers
Michael
Hi Michael,
There's no tooltip property for this - or for most sub-objects in a grid or other control. What you would typically do when you want to show a tooltip for part of a control like this is trap the MouseMove event of the control and change the tooltip dynamically based on the position of the mouse.
The only slighly tricky part of this is determining when the mouse is over the button. You would do this using the ElementFromPoint method. There are lots of articles with samples of this technique in the Infragistics Knowledge Base. Do a search for "ElementFromPoint".
You might also want to check out the Infragistics UIElementViewer Utility. It's a big help when working with UIElements.
I am trying to add tooltip to a cellbutton(columnstyle = editbutton) of an ultragrid.
Do we still dont have a property for this?
Thanks.
No, there's no property for it, but you can still use the same technique outlined above where you set tooltip based on the current mouse position.
Hello all!
I have written this up for developer review. We'll look into the feasibility of adding this feature and determine the best way to implement it based on the explanations you've given us here.
I will update this thread with the result of our developer's review. Please let me know if you have any questions.
I'd also like this functionality build-in to the grid. Would be very useful.