Hi Support Team,
We have attached herewith our sample code where a user control in added in the UltraGrid column and the user control contains some action buttons like edit, copy and delete. The problem what we are facing is that when we click any action buttons the events does not raise at the first attempt, but on later clicks it gets raised. What we would like to achieve is that when we make a single click, the event should get raised.
We would like to know is there any way by which we could bind the column cell value with the label contained in the user control, so that when the cell value changes the same is reflected in the user control too. Also can you please let us know, is there any other control which you provide the same look and feel.
rhealsoftTakeoff said:The problem what we are facing is that when we click any action buttons the events does not raise at the first attempt, but on later clicks it gets raised. What we would like to achieve is that when we make a single click, the event should get raised.
Me.UltraControlContainerEditor1.EnterEditModeMouseBehavior = Infragistics.Win.UltraWinEditors.EnterEditModeMouseBehavior.EnterEditModeAndClick
rhealsoftTakeoff said:We would like to know is there any way by which we could bind the column cell value with the label contained in the user control, so that when the cell value changes the same is reflected in the user control too. Also can you please let us know, is there any other control which you provide the same look and feel.
What you could do is expose a property on your UserControl that gets/sets the label text. Then set the UltraControlContainerEditor1 EditingControlPropertyname and RenderingControlPropertyName to this property.
Hi Mike,Thanks for your prompt reply.
Your suggested solution was helpful in resolving our two issues. We have implement it and it seems to look and work as per our requirement.
Further we have another query, that is it possible to show up tooltip which we have added in same usercontrol for the action buttons, without clicking into the usercontrol or action buttons. Where as now the tooltip is shown up only after i click the usercontrol or action buttons and also tooltip is shown only for that usercontrol which is currently clicked.
We have attached herewith our updated sample code.
Hi,
When a cell that is using the UltraControlContainerEditor is not in edit mode, the editor takes a snapshot of the editor and draws it into the cell. So the control is not really there in the cell and so tooltips will not work.
If you want tooltips in these cells, you would have to code those tooltips to show up in the grid - independent of the editor or the usercontrol. You could just set the ToolTipText property on the cell - the InitializeRow event is usually a good place to do this.