Hi,
I have an UltraGrid with some events like InitializeLayout, InitializeRow, etc
Is there a way to Unsubscribe from all events using reflection.
Thanks
Sangeetha
If you can provide a sample that demonstrates any leaks we'll be happy to investigate why any references are being held and the objects are not being properly cleaned up. I'm not aware of any existing leaks for the grid. What version of the UltraGrid are you working with?
Hi Matthew,
Thank You for your reply. I did explore disabling events which I think is a cool feature to have. But my problem is a lot of Infragistics objects are not being Garbage collected although they are disposed so was trying to unhook all event associated with them to free them so they can be Garbage Collected.
Any suggestion on this is greatly appreciated.
Sounds like you are looking for the GridEventManager. Check out the PLF topic on Event Managers: http://help.infragistics.com/NetAdvantage/WinForms/2012.2/CLR4.0/?page=Win_Event_Managers.html. Don't forget to turn them back on when you are done :).