Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
UltraControlContainerEditor editting control messed up after scroll
posted

Hello,

I have a custom control that is added to the grid column via the UltraControlContainerEditor.  I have defined both an editting control as well as a rendering control (which happen to be pointing to different instances of the same class).  Everything is working when the grid comes up...editting and rendering are solid and I am happy with it.  However, if the main grid is sized smaller so that a horizontal scroll bar appears and I actually scroll to the right and then back...then the control drawing gets messed up.  When in rendering mode everything is still fine...however when I click on the control (going to rendering mode) my control rendering is "off".

I have tried with both EnterEditModeMouseBehavior = EnterEditModeAndClick and with this not set...to no avail.  Do you have any suggestions?

Parents
No Data
Reply
  • 60
    posted

    A little more detail:

    My custom control contains 3 controls inside of it....a checkbox, picturebox and a label.  After I do a horizontal scroll then click on the cell the label control shows up just fine but not the picture box and checkbox.  

    I opened up Spy++ and tool a look at the custom control. Here is what I saw:

    The label controls rect was showing up inside of the rect for the main control.  However the checkbox and the picture box rects were well outside of the main controls rect.  This explains why they are not drawing. What I don't get is why this is happening....because I am not programatically moving these other two controls.

Children