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 

Virtual Tree ensure row visible

 
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 Aug 21, 2013 5:58 pm    Post subject: Virtual Tree ensure row visible Reply with quote

Hi: I'm using the underlying DataTable & DatarRows to find a particular unseen VTree Row using the following;
If condition
Dim rw as RowVTree.FindRow(DataRow)
rw.selected=True
rw.EnsureVisible()
EndIf

This successfully brings rw into view & selected BUT it shows rw at the very bottom of the visible window (the last row). Hence expanded children are not visible. It would be nice if rw would be displayed as the first row in the window & all or most of its children would be visible eliminating the need to manually reposition rw. How can this be accomplished?
_________________
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 Aug 22, 2013 8:25 am    Post subject: Reply with quote

If you call rw.Expand() after rw.EnsureVisible() this will expand the row and also display as many children as possible (while still keeping the parent visible). If you don't actually want to change the expansion state of the row then you could first check if rw.Expanded and only call rw.Expand if it is already expanded.
_________________
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