Accessing gridview from a non GridView event
<p>I have a button outside a gridview called "UpdateAll", i need to be able to click on such button and find an item template "DropDownList" and update the database with that value for each record, I am not sure how to go about this any ideas?</p>

<pre><code>  public void UpdateAll_Click(object sender, EventArgs e)
{

}
</code></pre>

<p>Now I know I can access the drop down in the GridView_RowCommand something like this</p>

<pre><code>  GridViewRow row = (GridViewRow)(((Button)e.CommandSource).NamingContainer);
        Myddl = row.FindControl("Quantity") as DropDownList;
</code></pre>

<p>But i am not sure how to do that from an outside event that is not GridView related, I can not do the one above because it accesses the <code>e.CommandSource.</code></p>

<p>Please help.</p>
