I have a listview in my users component. On listview property LabelEdit is true. On listview i have contextmenustrip with item Delete with shortcut key Del. How can i catch key press Del that if a cell is edited – delete the text in the cell, if is not editable – delete Item on Listview???
Share
You could start simple with binding to the
KeyDown(orKeyUp) event on theListView:And then in the event: