How to get the value from Dynamic control in gridview
<p>I have list the record using gridview with dynamiccontrol. i can get the control in code behind file using <code>DynamicControl objName = (DynamicControl)gvStudentRecord.FindControl("dynamicControlID")</code><br/>How to get the values using this object.<br/>This is my grid view    </p>

<pre><code>&lt;asp:GridView ID="gvStudentRecord" 
    OnRowCommand="gvStudentRecord_ManageStudent"  runat="server" 
    AutoGenerateColumns="false" OnRowEditing="gvStudentRecord_OnRowEditing" 
    onrowupdating="gvStudentRecord_RowUpdating"&gt;
    &lt;Columns&gt;
        &lt;asp:CommandField ShowEditButton="true"/&gt;
        &lt;asp:TemplateField HeaderText="Name"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcName" runat="server" DataField="Name"/&gt;
            &lt;/ItemTemplate&gt;
            &lt;EditItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcEditName" ClientIDMode="Static" ValidationGroup="gridEdit" Mode="Edit" runat="server" DataField="Name"/&gt;
            &lt;/EditItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField HeaderText="RegNo"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcRegNo" runat="server" DataField="RegNo" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField HeaderText="Tamil"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcTamil"  runat="server" DataField="Tamil" /&gt;
            &lt;/ItemTemplate&gt;
            &lt;EditItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcEditTamil" ValidationGroup="gridEdit" Mode="Edit" runat="server" DataField="Tamil"/&gt;
            &lt;/EditItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField HeaderText="English"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcEnglish" runat="server" DataField="English" /&gt;
            &lt;/ItemTemplate&gt;
            &lt;EditItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcEditEnglish" ValidationGroup="gridEdit" Mode="Edit" runat="server" DataField="English"/&gt;
            &lt;/EditItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField HeaderText="Total"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:DynamicControl ID="dcTotal" runat="server" DataField="Total" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
    &lt;/Columns&gt;
&lt;/asp:GridView&gt;
</code></pre>

<p><br/>In code behind i want to get values the user entered in the field in edit mode.Pls help me...</p>
