how to bind the DDL in grid which is inside the Repeater?
<p>Am having a DDl in a grid again the grid inside the repeater. I need to bind the DDl in grid row data bound event. Am having issues in getting the index of the grid inside the Rowdatabound, Since it is inside the repeater.</p>

<pre><code>protected void gvTest_RowDataBound(object sender, GridViewRowEventArgs e)
{
    if (gvTest.EditIndex == e.Row.RowIndex &amp;&amp; e.Row.RowType == DataControlRowType.DataRow)
    {
        DropDownList drpBuild = (DropDownList) e.Row.Cells[0].FindControl("ddlBuild");
    }
}
</code></pre>

<p>Design :</p>

<pre><code>&lt;asp:Repeater ID="rptParent" OnItemDataBound="rptParent_OnItemDataBound" runat="server"&gt;
    &lt;ItemTemplate&gt;
        &lt;table id="Table1" runat="server" cellpadding="0" cellspacing="0" width="100%" border="0"&gt;
            &lt;tr id="Tr3" runat="server"&gt;
                &lt;td&gt;
                    &lt;asp:Label ID="lblFieldID23" runat="server" Visible="false" Text='&lt;%# DataBinder.Eval(Container.DataItem,"FieldID")%&gt;'&gt;
                    &lt;/asp:Label&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr id="Tr1" runat="server"&gt;
                &lt;td class="tdGRD" colspan="2"&gt;
                    &lt;div class="divScrollGrid"&gt;
                        &lt;tw:twGridView ID="gvLabtestFeilds" runat="server" OnRowDataBound="gvLabtestFeilds_RowDataBound"&gt;
                            &lt;Columns&gt;
                                &lt;asp:TemplateField ItemStyle-Width="30%"&gt;
                                    &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblFieldName" runat="server" Text="Test"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                    &lt;ItemTemplate&gt;
                                        &lt;asp:Label ID="lblgvFieldName" runat="server" Text='&lt;%# Eval("FieldName") %&gt;'&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/ItemTemplate&gt;
                                &lt;/asp:TemplateField&gt;
                                &lt;asp:TemplateField&gt;
                                    &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblBatchno" runat="server" Text="Batch Number"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                    &lt;ItemTemplate&gt;
                                        &lt;asp:Label ID="ddlBatchNo" runat="server" CssClass="cbo"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/ItemTemplate&gt;
                                &lt;/asp:TemplateField&gt;
                            &lt;/Columns&gt;
                        &lt;/tw:twGridView&gt;
                    &lt;/div&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>
