Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
Disabling keyboard input but allowing drop-down to function
posted

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

Parents
No Data
Reply
  • 45049
    posted

    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.

Children