Hi,
I have a question about adding a UltraContainerControl in UltraGridCell by EditorComponent property. In fact, I develop a user control wich contains a checkbox and a button.
I assigned this user control to UltraContainerControl for RenderingControl and EditingControl (UltraContainerControl).
When I want to check or uncheck checkbox, or click on button, i 've to click twice in cell to do action in user control. One for activate usercontrol and one other for action in checkbox or button.
Is it possible to do with only one cell clik ?
Thanks a lot.
What happens is that when the cell is not in edit mode, it displays the RenderingControl as an image. When you click the cell it goes into edit mode and places your EditingControl over the cell. But the mouse message already occurred and was consumed by the grid. So you need a second click to actual perform an action on your control.
The UltraControlContainerEditor can handle this for you, though, by forwarding the mouse message to the control after it goes into edit mode. All you have to do is set EnterEditModeMouseBehavior on the UltraControlContainerEditor to EnterEditModeAndClick.
Hi, Thanks for your answer.
I've set EnterEditModeMouseBehavior on the UltraControlContainerEditor to EnterEditModeAndClick. My user control contains an UltraCheckEditor and an UltraPictureBox. With this property, click event on my image work fine. But with my UltraCheckEditor, I stille have a problem because it doesn't check or uncheck all the time.
I took the "ControlContainerEditor" project (Same Edit and Render control) for sample because it's the same problem in my other project. I added a new UltraCheckEditor in "AddressControl" to illustrate the problem. When you click on UltraCheckEditor, it doesn't check or uncheck all the time.
I attached sample project in this replay. Would you look at the problem to see if you are able to reproduce it ?