Hi, I’m using version 7.3 and I’m using an UltraGrid with one column defined as dropDown and using a UltraDropDown instance. That column has its style property set to ColumnStyle.DropDown. The problem I have now is that when I enter text en some cell of that column, by pressing any key, the grid suggest me the best element of the dropdown that looks better , till that moment, everything is ok.. Then if I for example the UltraDropDown values are Fernando, Mike and Jack, and the user writes “fer” (please pay attention to the f in lowercase) then I get “Fernando” as the suggested value. But, if I need to add “mikey” value (it’s not in the dropdown while “Mike” it is) then, when I start writing “mikey”, “Mike “ option is suggested to me with the M as an uppercase, and we will be adding “Mikey” where “mikey” was what we need to add. My question is: what do I have to do to tell UltraDropDown that if the suggestion failed then I can add what I wrote and not another similar option? I will be happy if you can help me.
Nuba.
Hi Nuba,
There's nothing built-in that will allow you to automatically add items to the list. You would have to write code to do this. I can't really tell you how to do it because there are a lot of unknowns, like when you want to trigger adding an item to the list, how you will detect this, what kind of data source you are using, etc.
What you will probably want to do is use the cell.ValueList.GetValue method and pass in the current Text of the cell to find the item on the list. If the item is not found, then you can take it from there.