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
95
add a usercontrol to ultragrid's cell
posted

Hi all

   There is a usercontrol base on a ultraTextEditor which you can't input nonNumeric text into the usercontrol.

   but when i set the cell's property EditorControl = myusercontrol, i still can input the nonNumeric text into the

 cell, don't  suggest to use another control . please help,it's Urgent ,thanks!

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    It's hard to answer your question, since you didn't really explain how you prevented non-numeric input. I suspect you are probably use KeyDown and/or KeyPress, though. If that's the case, then it won't work in the grid, because those events will not fire for the editor control.

    The grid does not actually use the EditorControl control that you specify. The editor control merely provides a copy of it's own internal editor to the grid. The grid already has it's own key events.

    If you have the latest version of the grid, you can use the new ControlContainerEditor to embed your usercontrol (or any control) directly into a grid cell. So that would allow you to use the same control.

Reply Children
No Data