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
725
UserControl as UltraTextEditor draws extra button on Win Form
posted

Before I describe the problem, let me give some background on what I'm trying to accomplish because this may not be the best method after all.

THE BACKGROUND:

I have a list of Code / Numeric Value pairs that I want to be able to display in a dual column drop down fashion. The user should be able to type either the single digit code or the actual numeric value in the control and upon exiting the control will always return the corresponding numeric value. The ability to type just the code speeds data entry for users more familiar with the system and the drop down list and ability to type the actual numeric value are for those less familiar.

Next - I need this functionality in a UltraGrid Column that represents the numeric data as well as a stand alone control on a windows form.

To that end I found that using an UltraTextEditor with a RightButton as a DropDown that displayed an UltraGrid bound to the data worked flawlessly on the grid, however some of my filtering & validating was tied to the Parent Grid events.

I was able to then create my own user control that inherits an UltraTextEditor, create an UltraGrid & the DropDown Button in code and bind the grid to the button. Now all the filtering and validation happen on the events inside my user control.

So far - So good.

Next I was able to use an UltraControlContainerEditor to place my user control on the grid column and "wire it up" and this too works perfectly.

THE PROBLEM:

When I try and place my user control on a WinForm - at design time (depending on the various things I have tried thus far) it displays either a single DropDownButton on the Right or none at all; however at Run Time there are TWO DropDownButtons on the right. The innermost one drops/displays the list as expected and the rest of the control works as planned also - there is just a phantom/dummy/extra button on the right of the control I can't get to go away.

Obviously I'm a little over my head here and any input is greatly appreciated.

I am coding with Visual Studio 2012 in VB.net using Infragistics 12.1.20121.2135 CLR4

Here is a sample App that shows problem

https://p2p.aep.com:443/AEPLargeFile/fileDownload.dsp?isEncrypted=true&isEnSet=true&fileStage=30&fileName=L1uhyxfMPhCJil7UKjzBiHZllwIFc1jWUhHJzb2a3dxkbYxO9SBibA%3D%3D&fop=a82b55b0253a11e38bfed34efa60426f8&version=v2

Thanks

Steve