title: MultiView cannot have children of type 'GridView'. It can only have children of type View
body: <p>I have the following asp.net code</p>
  
  <pre><code>asp:MultiView runat="server" ID="mvPaymentsOnProperty" ActiveViewIndex="0"&gt;
      &lt;asp:View runat="server" ID="vPaymentsMadeOnProperty"&gt;
          &lt;br /&gt;
          &lt;asp:GridView runat="server" ID="gvPaymentsMadeOnProperty" AutoGenerateColumns="false" EmptyDataText="bla bla"&gt;
              &lt;Columns&gt;
                  &lt;asp:BoundField HeaderText="bla" DataField="bla" /&gt;
                  &lt;asp:BoundField HeaderText="foo" DataField="bar" /&gt;
              &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
      &lt;/asp:View&gt;
      &lt;asp:View runat="server" ID="vNoPaymentsMadeOnProperty"&gt;
          Some sort of error
      &lt;/asp:View&gt;
  
  &lt;/asp:MultiView&gt;
  </code></pre>
  
  <p>When I try to load the page, I get the following error</p>
  
  <blockquote>
    <p>MultiView cannot have children of type 'GridView'.  It can only have
    children of type View.</p>
  </blockquote>
  
  <p>I've collapsed the Multiview code and the only two children it has are the views. Is it complaining because of the contents of the view? Because otherwise that'd make it almost completely useless.</p>
  
  <p>How do I fix this?</p>