Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Capture / process DEL key

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
kenjabber



Joined: 13 Jan 2007
Posts: 2

PostPosted: Tue Mar 13, 2007 1:25 am    Post subject: Capture / process DEL key Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Mar 13, 2007 5:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group