Is there a best-practice to set up a column so that it will allow the user to click its drop-down button and interact with a popup control while _dis_allowing the user from editing the cell's value by using the keyboard?
We're displaying formatted data in the cell (derived ToString()) and popping up a UserControl that contains all the ui to edit the object attached to the cell's .Value.
Thanks
I missed "user control" in your original post - my apologies for that.
What I've stated is meant for when you're using a WinCombo or WinComboEditor as the editor control of your column/cell, or when the column/cell makes use of a ValueList or an EditorWithCombo object.
What type of editor control are you using in order to show your user control? The EditorControl property requires a class that implements the IProvidesEmbeddableEditor interface. I'm assuming that your user control doesn't implement this interface; if it does, then it's likely up to your implementation of the interface to determine how to handle user input.
We tried that Vince, it didn't work as expected when I have a UserControl attached to the .EditorControl property.
Set the Style property of the corresponding column to "DropDownList". This prevents the user from typing free text into the cell, while allowing them to choose values from the drop-down list.