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
|