Hi, I am using Ultra combo as editor component in Ultra grid column. If I am setting column CellActivation property to ActivateOnly and ButtonDisplayStyle to Always. In any cell of that column I am not able to type or delete anything but I am able to select item using scroll in edit mode. Is there any way to handle this?
Hi Ganesh,
ganesdpatil said:Is there any way to handle this?
Handle what? What is the behavior you want? If you want the user to be able to edit the column by typing, then why are you setting CellActivation to ActivateOnly?
Are you saying you don't want the user to be able to edit the cell at all? I don't think it's possible to attach a dropdown to the cell and not allow the user to pick an item on the list. That would be a pretty unusual user interface. I know of no application that shows the user a dropdown which he cannot pick from.
You could hide the dropdown button and also handle the up and down arrow keys to prevent the user from picking from the list or seeing the list.
Hi Mike, Actually I have added editor button in combo and on click of editor Button I am going to another form to select record based on some conditions and on back I am selecting that record in combo. To Show Editor Button I need ButtonDisplay style as Always otherwise it is hiding it. In DB I am saving ID but while displaying I want to show some other field and Grid is binded with some collection. That's why in this case I need combo and I don't want user to change anything other than going to next from by clicking editor button.
Okay... then I'm confused. What's your question? Everything you describe here seems like it's working just the way you want it.
Hi Mike, If I am setting grid column Activate Only then user is unable to type or delete which is how I want, but if user scroll in combo using mouse wheel then it is selecting next record. I don't want to allow user to select record using scrolling if he want to select any record then he has to click on editor button and select record in next form. Is there any way to block scroll event in combo.
So you are using an UltraComboEditor with a DropDownEditorButton and you are also populating the UltraComboEditor's ValueList with items?
Okay, I see. I think you would have to handle the grid's MouseWheel event and cancel it (mark it handled).