title: crud with telerik radgrid and linq to entity
body: <p>I was thinking if is it possible to do crud on telerik radgrid and the data were from a linq to entity.</p>
  
  <p>I was using edmx, then I have  set Radgrid's DataSource with data resulting from a linq query. Here it goes: </p>
  
  <pre><code>DatabaseModel.Entities entities = new DatabaseModel.Entities();
  RadGrid1.DataSource = from courses in entities.Courses
                        select new {
                            courses.CourseName,
                            courses.CourseCode,
                            courses.Description
                        };
  RadGrid1.DataBind();
  </code></pre>
  
  <p>and the Radgrid was declared this way:</p>
  
  <pre><code>&lt;telerik:RadGrid ID="RadGrid1" runat="server"
      AllowAutomaticDeletes="true"  AllowAutomaticInserts="true" 
      AllowAutomaticUpdates="true" AllowPaging="True" 
      AutoGenerateDeleteColumn="True" EnableHeaderContextMenu="True" 
      AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateEditColumn="True"&gt;
      &lt;MasterTableView CommandItemDisplay="Top"  &gt;
      &lt;/MasterTableView&gt;
  &lt;/telerik:RadGrid&gt;
  </code></pre>
  
  <p>Is there any way we could edit the db contents this way? Thanks a lot.</p>