Hello:
I have a currency field and I would like to mask the display to show it as $99.99. However, I cannot locate the property in the designer.
Does that mean that masks are not supported in UltraWinDropdown?
Venki
I'm not sure which control we're talking about here, but for UltraGridBase-derived controls, you can handle InitializeLayout and get a reference to the column via e.Layout.Bands[n].Columns["whatever"], and set the masking properties on that column; the property names all begin with the phrase "Mask".
Brian:
The control I am referring to is UltraDropdown that is used as a dropdownlist for columns of UltraGrid.
Also, if I have two grids with a common column that I would like to link a UltraDropdown to, I see that I have to create two UltraDropDown controls.
Hi Venki,
No, there's no built-in way to have a mask in a cell with an UltraDropdown (or ValueList) applied to it. The masking functionality is handled by a different editor than the dropdown.
The only way to do something like this would be to create your own dropdown editor. This is not as complicated as it sounds. You just use the UltraWinMaskedEdit control and add a DropDownEditorButton to the ButtonsRight collection. Then you can put whatever control you like onto the dropdown via the Control property of the button. So you could put a WinGrid on the dropdown.
Then you just have to handle some events for when the dropdown is dropped down and for when the user clicks an item on the grid.
vvenk said:Also, if I have two grids with a common column that I would like to link a UltraDropdown to, I see that I have to create two UltraDropDown controls.
I'm not sure if it's possible to use the same dropdown for two different grids. It might not work because of the appearance image resolution.
3+ years later, is it still not possible to mask an UltraWinGrid.UltraDropDown? The preferred combobox for UltraGrids?
I've got a most basic need that can't be unique. An UltraGrid column provides my user an UltraDropDown that lists our SKUs for its text.
Thing is, of course, the legacy system auto-plants a dash ("-") after the 4th character so that the user doesn't have to type it in as it is absolute across our SKU standard.
I try to tell them that I use the latest, greatest tools out there. They ask, "well then, why can't you put a dash in the 5th position like our 20 year old FoxPro application can?"
My answer is? I have to build, and maintain a control? That's why I paid you :)
Hi mduff,
The control responsible for the masking is another editor as Mike already said. Doesn't his suggestion help you? What is it that you do not want to do with our mask control? I think that the solutions seems fair.