title: is not allowed here because it does not extend class 'System.Web.UI.UserControl'
body: <p>I have created a User Control that extends the DEVExpress ASPxGridView. My goal is to have this control be a template (style settings, shared properties) for all the times I would but the GridView somewhere, but instead of having to add the properties and Styles, I could use it as a template. All other properties, events, etc would be inherited from the base class</p>
  
  <p>Here is my ascx.cs code</p>
  
  <pre><code>namespace CORE.Web.UserControls
  {
     public partial class ucGridView : DevExpress.Web.ASPxGridView.ASPxGridView
        {
        }
  }
  </code></pre>
  
  <p>and the ascx code</p>
  
  <pre><code>&lt;dx:ASPxGridView ID="gcGridView" runat="server" AutoGenerateColumns="False" Styles-AlternatingRow-Enabled="True"&gt;
  &lt;Settings HorizontalScrollBarMode="auto" VerticalScrollBarMode="auto" VerticalScrollableHeight="500" /&gt;
  &lt;SettingsPager PageSize="20"&gt;
      &lt;PageSizeItemSettings Visible="true" ShowAllItem="true" /&gt;
  &lt;/SettingsPager&gt;
  &lt;SettingsBehavior AllowFocusedRow="true" /&gt;
  &lt;Styles&gt;
      &lt;Header VerticalAlign="Top" Wrap="True"&gt;&lt;/Header&gt;
      &lt;AlternatingRow Enabled="True"&gt;&lt;/AlternatingRow&gt;
  &lt;/Styles&gt;
  </code></pre>
  
  <p></p>
  
  <p>and where it is put in the aspx page</p>
  
  <pre><code>&lt;uc1:ucGridView runat="server" ID="ucGridView" DataSourceID="masterStatsObjectDataSource" /&gt;
  </code></pre>
  
  <p>There are other issues, like columns and whatever that know I will deal with, but I am hitting a roadblock just getting it to work at runtime</p>
  
  <p>I get this error message</p>
  
  <p><strong>'CORE.Web.UserControls.ucGridView' is not allowed here because it does not extend class 'System.Web.UI.UserControl'.</strong></p>
  
  <p>Line 1 of the aspx page is </p>
  
  <p><strong>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucGridView.ascx.cs" Inherits="CORE.Web.UserControls.ucGridView" %></strong></p>
  
  <p>I am not sure where to go from here, as this should be easy. Any help would be greatly appreciated. </p>
  
  <p>Thanks</p>