ASP Gridview drop down list selection changed, how to fill a dropdown list other than in rowDataBound()
<p>I Have a <code>gridview</code> in ASP, having <code>template Fields</code> containing <code>select</code>, <code>edit</code> and <code>delete</code> links each row, and the footer containing <code>insert</code> link.</p>

<p>There are two <code>dropdownlists</code> in each row, let's say: <code>Category</code> and <code>sub-category</code>, when I change the contents of <code>category DropDownList</code> the <code>sub-category DropDownList</code> should automatically display the corresponding contents. </p>

<p>I've tried to write a <code>onSelectedIndexChanged</code> handler, but I don't know how to continue. <strong>Any Ideas?</strong>  <em>(bearing in mind that I did all the rowDataBound() codes to fill the Drop down lists)</em></p>

<p><strong>In other words, how to populate a dropdownlist other than in row_databound()</strong></p>

<p>code:</p>

<pre><code>protected void grdBulkScheduler_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        try
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {   
                DropDownList ddlCategory = (DropDownList)e.Row.FindControl("ddlCategory");
                if (ddlCategory != null)
                {
                    ddlCategory .DataSource = cData.GetCategory();
                    ddlCategory .DataValueField = "c_ID";
                    ddlCategory .DataTextField = "c_Text";
                    ddlCategory .DataBind();                    
                }
</code></pre>

<p>Here I am finding the drop down list <strong>category</strong> from <strong>GridViewRowEventArgs</strong></p>

<p><strong>in the selectedIndexChanged handler, how can I find the DropDownList?</strong> <em>since
                    <code>DropDownList ddlCategory = (DropDownList)e.Row.FindControl("ddlCategory")</code> is not working</em></p>
