Hi,
I am using your LookUpEdit control to bind to object collections and it is working great, except for one thing: If the user selects an item and then wants to clear out the selection, it is not very intuitive for the user to hit Ctrl-0 or Ctrl-Del. Is there a more intuitive way for the user to clear out the control? Some ways that come to mind are:
- a blank top row that they can select (I know this can be done by adding a blank object to the collection, but it would be easier if the control had a top-null row or header row or something built in).
- a widget to click to clear selection
- being able to hit Delete (without Ctrl) - maybe this can be done through some event
Thanks,
Lars
Hi Lars,
Thank you for the question. To clear the LookUpEdit, you need to set the lookUpEdit1.EditValue property to null. For example, you can create your own button near the LookUpEdit, or handle the KeyDown event in the following manner:
private void lookUpEdit1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { lookUpEdit1.EditValue = null; } }
Thanks,
Marina