|
Infralution Support Support groups for Infralution products
|
View previous topic :: View next topic |
Author |
Message |
Thomas Guest
|
Posted: Thu Sep 21, 2006 6:15 am Post subject: Select a large count of rows programmatically |
|
|
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
|
Posted: Fri Sep 22, 2006 2:14 am Post subject: |
|
|
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 |
|
|
|
|
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
|