G
Guest
Hi
I have the following problem. When I call the 'Update()' method on my SQL Data Adapter it's updating the record correctly but then it's moving the record so that bound controls on the form display a different record (not necessarily the next record). Here's my code
public bool UpdateRecord(DataRowView dataRowView)
DataRow[] rows = new DataRow[] {dataRowView.Row}
this.sqlDataAdapter1.Update(rows); // moves record?!
. . . .
return true
Does anyone have any ideas what could be causing this? it's driving me crazy! The DataRowView that is passed to this function is the source for bound controls on the form. I'm not using the binding manager but this shouldn't cause the problem described above
Thanks for your help
Alan Scales
I have the following problem. When I call the 'Update()' method on my SQL Data Adapter it's updating the record correctly but then it's moving the record so that bound controls on the form display a different record (not necessarily the next record). Here's my code
public bool UpdateRecord(DataRowView dataRowView)
DataRow[] rows = new DataRow[] {dataRowView.Row}
this.sqlDataAdapter1.Update(rows); // moves record?!
. . . .
return true
Does anyone have any ideas what could be causing this? it's driving me crazy! The DataRowView that is passed to this function is the source for bound controls on the form. I'm not using the binding manager but this shouldn't cause the problem described above
Thanks for your help
Alan Scales