I have this sample project. I want to cancel combo editing in the current cell start editing handler. Not sure if it is the right place to cancel combo box.
hmm... I can''t seem to attach the sample project to this post. Anyway, I simply set the Cancel property to true in the CurrentCellStartEditing handler. However, I can still change the combo box value in the grid.
ADAdministrator Syncfusion Team March 14, 2005 04:46 PM
Try handling CurrentCellShowingDropDown and set e.Cancel = true there.
ADAdministrator Syncfusion Team March 14, 2005 05:03 PM
I did that too, this will only prevent showing the drop down part of the combo. Double clicking on the cell will cycle the list items.
Could this be a bug?
ADAdministrator Syncfusion Team March 14, 2005 05:32 PM
The different events control different actions. So, if you want to use events to prevent a combobox from editing, dropping and double-clicking, then I think you will have to handle these three events and set e.Cancel in each to catch the three actions you are trying to prevent.
Depending on the exact behavior you want, you may be able to do without one of these events, but I think you will need two of them.
ADAdministrator Syncfusion Team March 15, 2005 09:57 AM
Handling CurrentCellChanging solved my problem.