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
I've attached a file here that will make this a lot simpler to do. Simply include the attach class file in your project.
To use it, you need to do two things. First, you have to assign the CreationFilter to your grid. Copy this line of code into your Form_Load or the constructor of your main form or any similar event that fires once when the grid is initialized. You will need to do this for any grid's in your application that you want to show tooltips on the edit button.
this.ultraGrid1.CreationFilter = CellEditButtonElementToolTipCreationFilter.VALUE;
Then you can assign a tooltip to all of the Edit buttons in a column like so:
column.SetEditButtonToolTipText("Click here for more information.");
The InitializeLayout would be a good event in which to do this.
Or, if you need different tooltip text on each cell, you can assign an edit button tooltip to the cell like so:
string buttonToolTip = string.Format("Button Tooltip: {0}", cell.Text); cell.SetEditButtonToolTipText(buttonToolTip);
The InitializeRow event would be appropriate for this.
EditButtonToolTipProvider.zip
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.
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.
I am trying to add tooltip to a cellbutton(columnstyle = editbutton) of an ultragrid.
Do we still dont have a property for this?
Thanks.