How to update an editItemTemplate checkboxlist from codebehind?
<p>I am using a gridview fed from a SQL database. I need to add a custom itemTemplate that will consist of a checkboxlist fed from another datasource. Here is my xml part :</p>

<pre><code>        &lt;asp:TemplateField HeaderText="Equipements" &gt;
            &lt;EditItemTemplate&gt;
                &lt;asp:CheckBoxList ID="myCB" runat="server"&gt;
                &lt;/asp:CheckBoxList&gt;
            &lt;/EditItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
</code></pre>

<p>I am using the gridview onEditing event to try to access "myCB" in the code behind :</p>

<pre><code>    protected void OnEditing(object sender, EventArgs e)
    {
        GridView gridview = sender as GridView;
        GridViewEditEventArgs  editEvent = e as GridViewEditEventArgs;
        ListViewItemEventArgs rowEvent = e as ListViewItemEventArgs;
        TableCell equipementsCell = gridview.Rows[editEvent.NewEditIndex].Cells[11];

        CheckBoxList equipements = gridview.Rows.FindControl("myCB") as CheckBoxList;
    }
</code></pre>

<p>This code doesn't work, the checkboxlist isn't found. I have tried many things unsuccessfully...</p>
