My project includes a grid view with some updtable fields, some fields throw an error on update and some do not and it does not really make sense. WORK_STATION_ID does not cause an error, ROOM _ID cause an error, both are int? (I am using c#) and for update I use the code liste below.using (DataClassesDataContext db = new DataClassesDataContext())
var product = (from p in db.ASSETs where p.ASSET_ID == ASSET_ID select p).Single();
Row not found or changed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.Linq.ChangeConflictException: Row not found or changed.
Line 95: db.SubmitChanges();
Source File: C:\Projects\TEST_II\trunk\ObjectDataSourceLibrary\AssetController.cs Line: 95
[ChangeConflictException: Row not found or changed.]
System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +963417
View Complete Post