title: vertical scroll bars events not raised in datagrid view
body: <p>I have a datagrid view like this....in below image well thats works fine...</p>
  
  <p>I need to hook up an event in vertical side bar ..</p>
  
  <p>i mean if i click on upper arrow in the scroll bar i want to do something ...</p>
  
  <p>To be more specific i want to get the id of first upper record id when i click on upper arrow in  vertical scroll bar..</p>
  
  <pre><code> using System.Reflection;
   using System.Windows.Forms;
  
  bool addScrollListener(DataGridView dgv)
  {
     bool ret = false;
  
     Type t = dgv.GetType();
      PropertyInfo pi = t.GetProperty("VerticalScrollBar", BindingFlags.Instance | BindingFlags.NonPublic);
      ScrollBar s = null;
  
     if (pi != null)
      s = pi.GetValue(dgv, null) as ScrollBar;
  
     if (s != null)
    {
      s.Scroll += new ScrollEventHandler(s_Scroll);
      ret = true;
    }
    return ret;
  }
  
  private void s_Scroll(object sender, ScrollEventArgs e)
  {
      if (e.ScrollOrientation == ScrollOrientation.VerticalScroll)
      {
          if (e.Type == ScrollEventType.ThumbPosition)
          {
              if (e.Type == ScrollEventType.SmallIncrement)
              {
  
                  int i = dgvMembers.FirstDisplayedScrollingRowIndex;
                  int idemebers =Convert.ToInt32(dgvMembers.Rows[i].Cells["Id"].Value.ToString());
                  getMemberInfo(i, idemebers); // i want to the details of selected record into text boxes 
  
              }
              if (e.Type == ScrollEventType.SmallDecrement)
              {
  
                  int i = dgvMembers.FirstDisplayedScrollingRowIndex;
                  int idemebers = Convert.ToInt32(dgvMembers.Rows[i].Cells["Id"].Value.ToString());
                  getMemberInfo(i, idemebers);
  
              }
          }
  
      }   
  } 
  </code></pre>
  
  <p>but this event does not fire</p>
  
  <pre><code>s.Scroll += new ScrollEventHandler(s_Scroll);
  </code></pre>
  
  <p>it does not goes into the this event ...</p>
  
  <p>would any one pls help on this...</p>
  
  <p>Many thanks in advance</p>