I updated to version 2010.3.10.1109 from 2010.2.10.914 and when I set the datasource I now get TargetInvocationException
"Exception has been thrown by the target of an invocation.". It was working fine in the previous version.
Sadly i haven't yet updated to the latest version, i will do that tomorrow as fast as possible, but first thing, there is no DeferRefresh property in the Q2 version.
Second, you could try setting stepping into the property, maybe some other event fires before throwing the exception, or please post here the stacktrace.
Alternatively you could try wrapping these lines with BeginUpdate(), EndUpdate().
This will also help with performance of the grid.
Hope this helps, if you have any other questions or comments, please let me know,
answered on 15 Nov 2010, 05:56 PM
The DeferRefresh method was included for the collections that can suspend/resume update notifications. The DeferRefresh is also added to RadGridView and GridViewTemplate. The logic of the DeferRefresh method is the same as the logic of BeginUpdate/EndUpdate called internally in DeferRefresh. This method was added to help you to achieve elegant code where you need to execute a batch update operation.
As to the exception - if your code has worked before without using DeferRefresh or BeginUpdate/EndUpdate, this most probably means that we have introduced an issue in your scenario. Please open a new ticket and send us a sample application which demonstrates your case. This will allow us to assist you further.
Emanuel, thank you for your comments.
the Telerik team
See What's New in RadControls for WinForms in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>