title: System.Data.Linq.ChangeConflictException: Row not found or changed
body: <p>I am trying to delete a selected gridview row using LINQ (No
  LINQDataSource).</p>
  
  <p>When the selection is changed, the detailsview binding is changed
  also. I can add a new entry to the database, but when I added this
  code to a delete button inside the updatePanel, I got an exception:</p>
  
  <pre><code>try
  {           
      var query = from i in db.QuestionModules 
                  where i.QuestionModuleID == QuestionModuleID 
                  select i;
  
      QuestionModule o = query.First();
      db.QuestionModules.DeleteOnSubmit(o);
      db.SubmitChanges();
  }
  </code></pre>
  
  <p>This is the exception I get:</p>
  
  <pre><code>System.Data.Linq.ChangeConflictException: Row not found or changed. at
  System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode
  failureMode) at
  System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
  at System.Data.Linq.DataContext.SubmitChanges() 
  </code></pre>
  
  <p>I've had this problem for about a week, and no matter what I do, it is
  still there, and the record doesn't get deleted.</p>
  
  <p>Any ideas on what to do?</p>