|
Infralution Support Support groups for Infralution products
|
View previous topic :: View next topic |
Author |
Message |
Stuart Guest
|
Posted: Fri Mar 31, 2006 2:57 am Post subject: List insert followed by updaterows. |
|
|
Hi,
I just came across this, if I insert an item into position 0 in the list bound to the tree and update like:
list.Insert(0, item);
tree.UpdateRows();
it ends up all wrong, on a 2 item list it leaves me scrolled off the bottom. What should I be doing instead?
Thanks,
Stuart |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Mar 31, 2006 7:19 am Post subject: |
|
|
Assuming ShowRootRow is false then try:
Code: |
list.Insert(0, item);
tree.UpdateRows();
tree.TopRowIndex = 1;
|
_________________ Infralution Support |
|
Back to top |
|
|
|
|
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
|