Slow Listview Requery


Author
Message
Jared Ewald
Jared Ewald
StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)
Group: StrataFrame Users
Posts: 18, Visits: 43
Hi to all. I am populating a listview from a business object using the CopyDataFrom(BusinessLayerBase,BusinessCloneDataType) method. This business object can have up to about 1600 rows in it. The issue here is that the lstview.Requery() method that is populating the listview from the rows in the business object is taking a long time. I should mention that this listview is on a tab that is not initially shown. The requery is really quick until the tab with the listview is shown the first time, even if it is hidden after that. (The listview is filled and queried on the navigate method of the primary business object.)



The StrataFrame source code where the slowness occurs is during the following for loop in the PopulateListView function in ListView.vb:



For lnCnt = 0 To loBO.Count - 1

'-- Move to the row we need

loBO.MoveAbsolute(lnCnt)



'-- add the item to the list

Me.Items.Add(CreateListViewItem(loBO))

Next



Does anyone have any ideas?



Thanks,



Jared

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search