Posted 7 April 2019, 5:42 pm EST
Hi Egor,
WPF FlexGrid internally uses Microsoft’s ListCollectionView which does not provide deferring updates support. However, FlexGrid provides DeferNotifications() method for RowColCollection which can be used in update blocks to perform batch updates efficiently and safely. It can be used as follows:
var rows = _flexGrids.Rows;
using (rows.DeferNotifications())
{
//Perform Data updates/inserts
}
and notifications will be restored after exiting the using block(i.e. by disposing the IDisposable object returned by DeferNotifications method).
Please refer the attached sample(prj_deferredUpdates.zip) for the same and let me know if it does not help.
Thanks and Regards,
Basant
prj_DeferredUpdates.zip