G
Guest
Hi,
I'm creating a new row in a DataTable, sending it to the server and the
CommandBuilder and DataAdapter calls the SqlServer and insert it properly
with a new ID generated. in the client side code looks like this :
....
newRow = myDS.Tables[0].NewRow;
....set new row's value...
newRow["id"] = m_Server.UpdateRows( myDS );
myDS.AcceptChanges();
later on i try to modify that same row and update it again
newRow["myStatus"] = "SendToCustomer";
m_Server.UpdateRows( myDS );
I've checked the status of the row before i call the server again, and it
says "modified" but the server yields "Concurrency violation: the
UpdateCommand affected 0 records"
why is that ?
many Thanks.
I'm creating a new row in a DataTable, sending it to the server and the
CommandBuilder and DataAdapter calls the SqlServer and insert it properly
with a new ID generated. in the client side code looks like this :
....
newRow = myDS.Tables[0].NewRow;
....set new row's value...
newRow["id"] = m_Server.UpdateRows( myDS );
myDS.AcceptChanges();
later on i try to modify that same row and update it again
newRow["myStatus"] = "SendToCustomer";
m_Server.UpdateRows( myDS );
I've checked the status of the row before i call the server again, and it
says "modified" but the server yields "Concurrency violation: the
UpdateCommand affected 0 records"
why is that ?
many Thanks.