I have an UltraCombo set as the EditorControl of a column in a grid (we are using UltraCombo instead of UltraDropDown for various reasons). Is it possible to disable text selection? I want the cell to be in edit mode but without the cell text to be highlighted either automatically or manually by the user. In other words, is there a way to force SelLength or SelectionLength to always be empty?
If you want to force the user to choose from the list and not be able to type or select text, it sounds like you need to set the Style of the Column to DropDownList.
If that's not what you want, then I know of no way to prevent the user from selecting text except maybe disabling the cell, which would make the dropdown inaccessible, as well.
I have the same problem.
It is not so much a problem with dropdownlist.
I have the following problem:
I have a wincombo which opens when I type more than four characters in the textbox (at that moment the datagrid contains a suggestion of values from which I can select the needed value) However, when the dropdown event is triggered, the text in the textbox is selected, if I continue typing I erase the previous text and I get erroneous results.
I tried several solutions, including trapping the AfterDropDown event and then executing the following code, without succes however, could you help me?
Me.uComboDomains.Textbox.SelectedText = "" Me.uComboDomains.Textbox.SelectionLength = 0
You should be able to do this by setting the SelectionLength to 0 and the SelectionStart to the Text.Length of the cell.