title: Display error message below text box using RegularExpressionValidator in Gridview
body: <p>I am validating a TextBox in a Gridview.  The error message displays when it is suppose to but the first word of the message displays beside the textbox an the rest under it. How can I make sure the entire message is below the text box.  </p>
  
  <p>This is the .aspx code:</p>
  
  <pre><code> &lt;asp:GridView ID="MappingGridView" runat="server" AllowSorting="True" AutoGenerateColumns="False" Caption="Enrollment Mapping Information" CaptionAlign="Top" 
      CssClass="grid" HorizontalAlign="Left" ShowFooter="True" AllowPaging="True" PageSize="4" ShowHeaderWhenEmpty="true" OnPageIndexChanging="MappingGridView_PageIndexChanging" 
       OnRowDataBound="MappingGridView_RowDataBound" OnRowCommand="MappingGridView_RowCommand"&gt;
      &lt;Columns&gt;
           &lt;asp:TemplateField HeaderText="MappingID" SortExpression="mgvMappingID"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Label ID="mgvLblMappingID" runat="server" Text='&lt;%# Bind("EnrollmentMappingID") %&gt;'&gt;&lt;/asp:Label&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
   &lt;asp:TemplateField HeaderText="CECityActivityID" SortExpression="mgvCECityActivityID"&gt;
              &lt;EditItemTemplate&gt;
                  &lt;asp:TextBox ID="mgvEditCECityActivityID" runat="server" Text='&lt;%# Bind("CECityActivityID") %&gt;'&gt;&lt;/asp:TextBox&gt;
                  &lt;asp:RegularExpressionValidator ID="RegExpValEditCECityID" ControlToValidate="mgvEditCECityActivityID" runat="server" 
                       ErrorMessage="Enter 0-9, A-F, and hyphens. Maximum length is 50." ValidationGroup="MappingGrid" ValidationExpression="^[0-9A-Fa-f-]{0,50}$" 
                       Display="Dynamic" CssClass="message-error"&gt;
                   &lt;/asp:RegularExpressionValidator&gt;
              &lt;/EditItemTemplate&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Label ID="mgvLblCECityActivityID" runat="server" Text='&lt;%# Bind("CECityActivityID") %&gt;'&gt;&lt;/asp:Label&gt;
              &lt;/ItemTemplate&gt;
               &lt;FooterTemplate&gt;
                  &lt;asp:TextBox ID="mgvInsertCECityActivityID" runat="server" Width="90%"&gt;&lt;/asp:TextBox&gt;
                  &lt;asp:RegularExpressionValidator ID="RegExpValCECityID" ControlToValidate="mgvInsertCECityActivityID" runat="server" 
                       ErrorMessage="Enter only 0-9, A-F, and hyphens; maximum length is 50." ValidationGroup="MappingGrid" ValidationExpression="^[0-9A-Fa-f-]{0,50}$" 
                       Display="Dynamic" CssClass="message-error"&gt;
                   &lt;/asp:RegularExpressionValidator&gt;
              &lt;/FooterTemplate&gt;
          &lt;/asp:TemplateField&gt;
   &lt;/Columns&gt;
   &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>This is the display:</p>
  
  <p><img src="https://i.stack.imgur.com/uTbh8.png" alt="enter image description here"></p>
  
  <p>How can I get the text to display entirely on the line below the textbox?</p>
  
  <p>Thanks,
  Gloria</p>