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 

Programmatically scroll virtual tree vertically up

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



Joined: 20 Dec 2007
Posts: 39
Location: Arroyo, PR

PostPosted: Wed May 12, 2010 4:52 pm    Post subject: Programmatically scroll virtual tree vertically up Reply with quote

I'm setting the virtual tree datasource and expnading all rows & levels. The screen shows the bottom rows when done. I'd like to programmatically scroll verticaly up to the top instead of having to use the mouse or keyboard. Thanks.
_________________
Medical billing & records developer.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed May 12, 2010 11:04 pm    Post subject: Reply with quote

To scroll to the top you can set the VirtualTree.TopRowIndex to either 0 or 1 (depending on whether you have ShowRootRow set to true or false respectively). You could also turn off AutoScrollOnExpand so that the tree won't attempt to scroll child rows into view as you are expanding rows.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
medbiller



Joined: 20 Dec 2007
Posts: 39
Location: Arroyo, PR

PostPosted: Thu May 13, 2010 12:29 am    Post subject: AutoScrollOnExpand = False worked, but couldn't make .TopRow Reply with quote

AutoScrollOnExpand = False worked, but couldn't make .TopRowIndex = 1 to work.
_________________
Medical billing & records developer.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu May 13, 2010 12:40 am    Post subject: Reply with quote

I've just checked that TopRowIndex = 1 works (using the DataSet Browser Sample project). There must be some other issue if this isn't working. If you are doing a lot of expanding then setting AutoScrollOnExpand to false while you do it will definitely be more efficient.
_________________
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