KB Article A359
Visible to All Users

How to clear the currently selected value in the LookUp editor

Description:
How can I clear the Currently Selected Value in my Lookup Editor?

Answer:
XtraEditors v3 and higher allows you to clear the editor's value. You should set the AllowNullInput property to True. Then a user can clear the currently selected value by pressing the Ctrl+0 or Ctrl+Delete key combination.
Another solution is to create a wrapper for your data source. It's shown in the attached example.

Comments (2)

    Where is the attached example?

    DevExpress Support Team 8 years ago

      Hello,
      You can find the attached example in the Examples item on the right side of the page:

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.