View previous topic :: View next topic |
Author |
Message |
medbiller
Joined: 20 Dec 2007 Posts: 39 Location: Arroyo, PR
|
Posted: Wed Aug 21, 2013 5:58 pm Post subject: Virtual Tree ensure row visible |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Aug 22, 2013 8:25 am Post subject: |
|
|
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 |
|
|
|