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 

Select a large count of rows programmatically

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





PostPosted: Thu Sep 21, 2006 6:15 am    Post subject: Select a large count of rows programmatically Reply with quote

Hi,

I use programmatic data binding and have a tree with 40.000 items, all located under the root item (i.e. the tree is more or less a list).

Now i would like to select a large count of rows, say, each second of my 40.000 items.

I tried to use VirtualTree.SetSelectedItems and found that it takes very long. So I tried to use VirtualTree.SelectedRows.Add(IEnumerable), but getting the rows by VirtualTree.GetRow(int) or VirtualTree.FindRowByIndex takes very long too.

Is there a way to select most of the items, but not neccessarily all, within a second or so?

Thank you very much.
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Sep 22, 2006 2:14 am    Post subject: Reply with quote

Well it is potentially going to take a while because you are forcing Virtual Tree to actually load each of the selected items. The speed of this really is somewhat depending of the underlying mechanism you are using to load the data. If you are binding to data already in memory (say a Dataset) then it should be relatively quick (since you have already done the work of loading the dataset into memory). If you are loading data from a database on the fly (as Virtual Data Objects does) then you will experience the cost of effectively loading each item.
_________________
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