Hello,
I am using an UltraGrid with virtual mode; the CellDataRequested event handler provides cell data from a data collection. The data in the collection are updated by a background thread. When the grid needs to refresh the follow statements are used:
_ultraDataSource.Rows.SetCount(_displayedViewRecords.Count);_ultraDataSource.ResetCachedValues();_ultraGrid.Rows.Refresh(RefreshRow.FireInitializeRow, true);
I noticed that most objects used within the grid are recreated: One instance of each following class is created for grid:
Infragistics.Win.UltraWinGrid.DataAreaUIElementInfragistics.Win.UltraWinGrid.UltraGridUIElementInfragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElementInfragistics.Win.UltraWinGrid.RowSelectorHeaderUIElement
One instance of each following class is created for each row:
Infragistics.Win.UltraWinGrid.RowUIElementInfragistics.Win.UltraWinGrid.RowSelectorUIElementInfragistics.Win.UltraWinGrid.RowCellAreaUIElement
One instance of each following class is created for each column:
Infragistics.Win.UltraWinGrid.BandHeadersUIElementInfragistics.Win.UltraWinGrid.HeaderUIElementInfragistics.Win.TextUIElement
One instance of three or more classes is created for each cell.
I thought all the objects within the grid would be reused as much as possible. The data in my data collection are constantly updated and the grid performance is affected by the recreation of these objects within the grid. I am not sure if I have done something wrong.Could someone point me in the right direction please?
Thanks,Shaolin
Hello Shaolin,
These are the two issues you reported:
Please send us a sample reproducing your first issue. Looking forward to your reply.
Hi,
What happened to “Constantly updating the cells value prevents column headers tooltips from appearing”, Development ID of #220474? I reported this issue a year ago and it seems nothing has been done.
Hi Milko,
The second issue I reported has been fixed. However, all the objects are still recreated, which really affects grid performance. I was hoping the root cause would have been addressed.
Best Regards,Shaolin
The fix for development issue 220474 is available in the latest service release available from the My Keys and Downloads page.
I've updated your ticked.