I have an ultraCombo in a gridţs cell, with the autocomplete on. It should work like this - when an item is picked from it, a text should be set in another cell of the same row. But this is how it works : when i type a character into the ultracombo, the first coresponding item is autocompleted and the second cell is imediatly filled - and i can't write any other character inside because the focus moved to the second cell.
I use the ValueChanged event , and set the second cell's value like this :
rolesGrid.ActiveRow.Cells[3].Value = "text";
Any ideea how could i obtain the behaviour i desire ?
Thanks!
What event are you using? The grid has no ValueChanged event and if the UltraCombo is being used in a grid cell, then you can't use any events of the UltraCombo. You need to use a grid event.
Also, setting the Value of a grid cell does not set focus to that cell. So if the cell is activating, then something else in your code is doing that and you need to find out what it is and stop it from happening.