View previous topic :: View next topic |
Author |
Message |
kenjabber
Joined: 13 Jan 2007 Posts: 2
|
Posted: Tue Mar 13, 2007 1:25 am Post subject: Capture / process DEL key |
|
|
I would like to capture a DEL key press in order to cause the currently selected row to be deleted.
What is the best way to capture the DEL key press? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Mar 13, 2007 5:15 am Post subject: |
|
|
Simply handle the KeyDown event. Get the current SelectedItem and delete it from your data source. If your data source does not support two way databinding (via IBindingList) then you need to call UpdateRows to refresh the tree hierarchy. _________________ Infralution Support |
|
Back to top |
|
|
|