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 problem

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



Joined: 03 Feb 2007
Posts: 2

PostPosted: Thu Nov 29, 2007 8:47 pm    Post subject: SelectedRow problem Reply with quote

When I set the .SelectedRow and then try to multi-select using the keyboard, the currently selected item doesn't get included within the selected items.

For example in a default tree with multi select enabled, I do:

virtualTree1.SelectedRow = virtualTree1.GetRow(5);

Then hold shift+down to select the row below also, but only the row below gets selected. Is there any way around this? It doesn't work like this on the default ListView.

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



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Nov 29, 2007 9:20 pm    Post subject: Reply with quote

This is because the AnchorRow is currently not set when you set the SelectedRow property. We will fix this in the next release to give you the same behaviour as the standard ListView. If you need this behaviour before then you can achieve it by overriding the SelectedRow property and setting the (protected) AnchorRow property in the set method.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Dec 03, 2007 9:36 pm    Post subject: Reply with quote

Version 3.7.2 has now been released and fixes this issue.
_________________
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