title: How to get row index in Dropdownlist selectedIndexChanged?
body: <p>I'm using a gridview and sqldatasource.</p>
  
  <p>I have a dropdownlist in my gridview with 2 values : Yes and No .</p>
  
  <pre><code>protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
  {
      GridViewRow row = GridView1.Rows[e.RowIndex];
      DropDownList ddl = ((DropDownList)row.FindControl("DropdownList1"));
      if(ddl.selectedvalue == "1")
          //etc..
  }
  </code></pre>
  
  <p>I need to get the Row index because this <code>GridViewRow row = GridView1.Rows[e.RowIndex];</code> is not available in the current event.</p>