title: How to access control's event?
body: <p>I am trying to get the name of the events that is assigned to control
  For eg: I have two forms <strong>A</strong> and <strong>B</strong> .<strong>Form B</strong> contains <strong>GridControl</strong> and gridcontrol has some events like <strong>gridControl1_Validating</strong>.</p>
  
  <p>my goal is just to know what are the events assigned to the control</p>
  
  <p>My Code is as follows
  <strong>FOrm A</strong></p>
  
  <pre><code> public Control[] FilterControls(Control start, Func&lt;Control, bool&gt; isMatch)
      {
          var matches = new List&lt;Control&gt;();
          Action&lt;Control&gt; filter = null;
          (filter = new Action&lt;Control&gt;(c =&gt;
          {
              if (isMatch(c))
                  matches.Add(c);
              foreach (Control c2 in c.Controls)
                  filter(c2);
          }))(start);
  
          return matches.ToArray();
  
  
      }
  
  
       static void main[]
       {
  
  
          Control[] FoundControls = null;
          FoundControls = FilterControls(TF, c =&gt; c.Name != null &amp;&amp; c.Name.StartsWith("grid"));
  
          var eventinfo = FoundControls[0].GetType().GetEvent("gridControl1.Validating", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
  
       }
  </code></pre>
  
  <p>ON compiling I get my control but I am getting null at <strong>eventinfo</strong>
  Although gridcontrol event has this event in <strong>form B</strong></p>
  
  <p>Please help</p>