title: How do I get the current row of a GridView from a Buttonfield click?
body: <p>I have an ASP.NET GridView with a DropDownList (in an Item Template) and a ButtonField. </p>
  
  <pre><code>&lt;my:GridView AutoGenerateColumns="false" ID="CurrentCardGrid" UseHighlights="False" runat="server" Width="100%"&gt;
   &lt;Columns&gt;
    &lt;asp:BoundField HeaderText="ID" ItemStyle-Width="50px" DataField="Id" /&gt;
    &lt;asp:TemplateField HeaderText="" ItemStyle-Width="150px"&gt;
     &lt;ItemTemplate&gt;
      &lt;asp:DropDownList runat="server" ID="StatusList" Width="140px"&gt;
      &lt;/asp:DropDownList&gt;
     &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;
    &lt;asp:ButtonField Text="Update" ButtonType="Button" CommandName="Update" /&gt;
   &lt;/Columns&gt;
  &lt;/my:GridView&gt;
  </code></pre>
  
  <p>In code, I fill the drop list and capture the RowCommand event. </p>
  
  <p>My question is, in the RowCommand event handler, how do I get the current row? I need to get the value from the drop list and set the status of the row (pointed to by the ID) to the value from the drop list. Note, the row will not be in update mode.</p>
  
  <p>Thanks  in advance!</p>
  
  <p>Tom</p>