Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting in Gridview
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01245109
Message ID:
01245397
Views:
21
Hi Kevin,

Thanks for the response. There is no child object and I let the immediatedelete as default..

Regards

See below for Stack Trace:

Stack Trace:


[DBConcurrencyException: Concurrency violation: the DeleteCommand affected 0 of the expected 1 records.]
System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) +1384340
System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) +41
System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) +2032
System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping) +40
System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) +183
OakLeaf.MM.Main.Data.mmDataAccessSql.SaveDataSet(DataSet ds, String tableName, String primaryKeyName, Boolean retrieveAutoIncrementPK, IDbDataAdapter dbAdapter) +1974
OakLeaf.MM.Main.Business.mmBusinessObject.Delete(DataRow dr) +548
OakLeaf.MM.Main.Business.mmBusinessObject.Delete(DataSet ds, String tableName, Int32 row) +95
OakLeaf.MM.Main.Business.mmBusinessObject.Delete(DataSet ds, Int32 row) +69
Nationality.grdNationality_RowDeleting(Object sender, GridViewDeleteEventArgs e) in C:\DotNetProjs\MMNet\HRMS\HRMSUI\Nationality.aspx.vb:61
System.Web.UI.WebControls.GridView.OnRowDeleting(GridViewDeleteEventArgs e) +133
System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) +604
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +1155
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +199
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform