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 

List insert followed by updaterows.

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





PostPosted: Fri Mar 31, 2006 2:57 am    Post subject: List insert followed by updaterows. Reply with quote

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

PostPosted: Fri Mar 31, 2006 7:19 am    Post subject: Reply with quote

Assuming ShowRootRow is false then try:

Code:

list.Insert(0, item);
tree.UpdateRows();
tree.TopRowIndex = 1;

_________________
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