I know it's not 'easy' but is it 'possible' to embed a custom UserControl into a child band column of an UltraDataSource object (for display in an Ultra Grid).
When I try it, it doesn't error out but the child band just displays the name of the user control (for the attached screenshot, I'm using a microsoft calendar control but I actually want to use a custom control that displays an UltraMonthViewMulti control).
Hi,
You cannot use the same instance of a control for both the RenderingControl and the EditingControl. I assume you mean you are using the same type of control?
There's no reason why you should be getting a stack overflow, unless something in your code is calling itself in an infinite loop.
Perhaps when the value on your control is set, you are updating the UI on your control which sets the value again and it gets into an infinite loop? To avoid that, it's usually a good idea to check in your property setter that the value is actually changing (is not being set to the same value it already was).
Hi Mike,
I the sample, we have only 3 rows loaded with user control. My requirement is similar , but more than 100 cells in grid are loaded with usercontrol. Here same control is used as rendering control as well as editing control. If I keep on moving the mouse for some time, UpdateUI method is throwing stack overflow exeption. Am struck with that now. Please Let me know any alternative way to accomplish my task.
You cannot avoid it. Every time the cell in the grid paints, it will update the RenderingControl with the value from that cell and paint that control into the cell.
Hi Brian,In the ControlContainerEditor C# samples attached , in SameRenderAndEditForm , whenever i move mouse between cells of AddressControl column , set event of Address property in AddressControl is fired.How is that set event related to mouse movement. How to avoid that.
Hi Brian,
In the ControlContainerEditor C# samples attached , in
SameRenderAndEditForm , whenever i move mouse between cells of AddressControl column , set event of Address property in AddressControl is fired.
How is that set event related to mouse movement. How to avoid that.