We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

OptimizeListChangedEvent

Hi Clay, I found in some samples the following code: //Listen to the IBindingList.ListChanged events instead of the //CurrencyManager events. this.customerGrid1.Binder.OptimizeListChangedEvent = true; What does this exactly change und in which case it makes sense? Regards, Thomas

1 Reply

AD Administrator Syncfusion Team April 15, 2004 09:41 PM UTC

It will greatly increase performance in most cases of binding a IBindingList datasource(including DataTable) to a GridDataBoundGrid. When this property is set, the grid listens and responds directly to the IBindingList.ListChanged event instead of to CurrencyManager change events. The information provided by the ListChanged event is more specific based on the ListChangedType, and allows the grid to more efficiently respond to the action being signalled. With the CurrencyManager events, sometimes the whole grid might get refreshed instead of maybe only a row passed through the ListChanged event. If you are inserting/deleting lots of records, the performance gains can be significant (~10 to 20 times quicker).

Loader.
Live Chat Icon For mobile
Up arrow icon