View previous topic :: View next topic |
Author |
Message |
JxxDiaz
Joined: 28 Mar 2006 Posts: 2
|
Posted: Mon Nov 20, 2006 10:32 pm Post subject: Set scrollbar value |
|
|
I am storing the virtual tree's scroll bar values by grabbing the VertScrollBar.Value and HorzScrollBar.Value and then repopulating my datasource. After repopulating the virtual tree I would like to set those scroll positions back. Is this possible? I get the error that VertScrollBar.Value and HorzScrollBar.Value are inaccessable due to protection level when i try to set these properties. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Nov 21, 2006 7:09 am Post subject: |
|
|
You wouldn't normally access the internal scrollbar directly. Instead try storing and setting the TopRowIndex or if your hierarchy is changing significantly store TopRow.Item and then use FindRow to locate the same row in the rebuilt tree and set the TopRow property. _________________ Infralution Support |
|
Back to top |
|
|
|