Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Grid InvocationList CellChange
posted

Hi,

I need to check on runtime if a specific method is hooked up to the grids CellChange event. How can i do that? It seems as if i have to use reflection to get this information, but unfortunately i do not get it via this code, because eventField is null:

Type classType = tree.GetType();
FieldInfo eventField =  classType.GetField(
                            "CellChange",
                            BindingFlags.GetField
                            | BindingFlags.NonPublic
                            | BindingFlags.Instance);

EventHandler eventDelegate = (EventHandler)eventField.GetValue(myGrid);
if (eventDelegate != null)
{
   Delegate[] allDelegates = eventDelegate.GetInvocationList();

   ....

}

Parents
No Data
Reply
  • 48586
    posted

    Hello, ­­­­­

     

    I am just checking about the progress of this issue. Let me know If you need my further assistance on this  issue?

     

    Thank you for using Infragistics Components.

Children
No Data