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 

SelectedRow vs FocusRow

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



Joined: 12 Dec 2007
Posts: 78

PostPosted: Mon Feb 11, 2008 5:44 pm    Post subject: SelectedRow vs FocusRow Reply with quote

Is there any difference between the SelectedRow and the FocusRow? I don't quite understand the difference between the two.

What I am trying to do is determine when the Tree is or is not selected in general, but I don't see a VirtualTree.Selected property.

Greg
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Feb 11, 2008 9:18 pm    Post subject: Reply with quote

If you only have single selected row then it will also be the focus row. When you have a multiple selection however the two may be different. The SelectedRow will be the first row selected where as the FocusRow will be the row with current keyboard focus (usually also selected). The FocusRow is used for keyboard navigation.

Quote:
What I am trying to do is determine when the Tree is or is not selected in general, but I don't see a VirtualTree.Selected property.


I'm not sure what you mean by this. The SelectedRow (or SelectedRows) property will tell you if there is a row(s) currently selected. The standard .NET ContainsFocus property will tell you if VirtualTree (or one of its editor controls) has keyboard focus.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
gregoryagu



Joined: 12 Dec 2007
Posts: 78

PostPosted: Wed Feb 13, 2008 8:46 pm    Post subject: Reply with quote

Thanks. The ContainsFocus was the property I was looking for.

Greg
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Feature Requests 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