Required Field Validator not working properly in gridview
<p>Required Field Validator not working properly in gridview</p>

<p>I work in ASP.NET c# and MySQL database.</p>

<p>I need to make the required field of this <strong>DropDownList</strong> on <strong>FooterTemplate</strong>, but Required Field Validator not working.</p>

<p>Why ?</p>

<p>My code: </p>

<pre><code>&lt;FooterTemplate&gt;
    &lt;asp:ImageButton ID="imgbtnInsert" runat="server" CommandName="Insert" ImageUrl="/images/icon_2.gif"
        ToolTip="Add" OnClientClick="return confirm('Confirm?');" /&gt;
&lt;/FooterTemplate&gt;


&lt;FooterTemplate&gt;
    &lt;asp:DropDownList ID="txtIDDTES" runat="server" CssClass="ddl_Class_new"&gt;
    &lt;/asp:DropDownList&gt;
    &lt;asp:RequiredFieldValidator ID="rtxtIDDTES" runat="server" ControlToValidate="txtIDDTES"
        ErrorMessage="***" Text="*" Display="Dynamic" ValidationGroup="Validation1"
        SetFocusOnError="true" EnableClientScript="true"&gt;&lt;/asp:RequiredFieldValidator&gt;
&lt;/FooterTemplate&gt;


&lt;asp:ValidationSummary ID="Validation1" ValidationGroup="Validation1" runat="server" ShowMessageBox="true" /&gt;
</code></pre>

<p>Can you please help me figure out the problem?</p>

<p>Thanks in advance.</p>