title: ASP.NET GridView throwing error: "Update is disabled for this control"
body: <p>I have the absolutely most simple setup imaginable. A single table defined in an Entity model in ASP.net v4, the model is bound directly to a GridView with AutoGenerateEditButton enabled.</p>
  
  <p>However, each time I hit edit, then save, the page throws the error “Update is disabled for this control" for which I cannot find a solution.</p>
  
  <p>What is causing this error? What can do to resolve it?</p>
  
  <pre><code>&lt;%
  &lt;asp:GridView ID="MenuItemsGrid" runat="server"
      DataSourceID="gridDataSource"
      AutoGenerateEditButton="true"
      AutoGenerateColumns="true"&gt;  
  &lt;/asp:GridView&gt;  
  
  &lt;asp:EntityDataSource ID="gridDataSource" runat="server"
      ConnectionString="name=dataEntitiesModel"
      DefaultContainerName="dataEntities"
      EntitySetName="MenuItems" /&gt;
  %&gt;
  </code></pre>