Hello,
i got a problem with the performance of the XamDataGrid on setting the DataSource. I analysed it with dotTrace and saw, that 99% of the time were spent on BringRecordIntoView after setting the active record.
Is there a way to disable the BringRecordIntoView, or even to enhance the performance in other ways?
I already read Kiril's "Optimizing XamDataGrid Performance" thread. I suppressed the events in the way shown in the example. Also i set the CellContainerGenerationMode and RecordContainerGenerationMode to "LazyLoad".
Tank you, Alex
Hello Alex,
Thank you for your post. I have been looking into it and I can suggest you set the ActiveRecord like this:
xamDataGrid1.Records[50].IsActive = true;
Instead of setting the XamDataGrid’s ActiveRecord Property, because it calls internally the BringRecordIntoView, which you don’t want. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Sorry, i don't set the ActiveRecord nor set the IsActive anytime.
I analysed it with dotTrace and the call hierarchy comes from "DataPresenterBase.set_DataSource".
So it seems, that the ActiveRecord is set automatically on setting the Datasource to the Grid.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.