G
Guest
Hello,
When I insert a new row into a datatable, the following event fires:
RowChanged, with the action DataRowAction.Add
So, within the sub that handles this event I call another sub to update the
datatable with its sqldataadapter (the update command only affects one
database table)
The odd thing is that when the update completes, the following event for the
same datatable fires:
RowChanged, with the action DataRowAction.Change
.... And it refers to the same row I've inserted.
Why does it fire up ? the direction of the update is from my datatable to my
database. The fact that I'm updating the database should not affect the
contents of my actual datatable, it isn't ?
For the time being, I'm using a boolean variable to control this annoying
fact.
Thanks in advance,
Roger
..NET 2005 and DB developer
When I insert a new row into a datatable, the following event fires:
RowChanged, with the action DataRowAction.Add
So, within the sub that handles this event I call another sub to update the
datatable with its sqldataadapter (the update command only affects one
database table)
The odd thing is that when the update completes, the following event for the
same datatable fires:
RowChanged, with the action DataRowAction.Change
.... And it refers to the same row I've inserted.
Why does it fire up ? the direction of the update is from my datatable to my
database. The fact that I'm updating the database should not affect the
contents of my actual datatable, it isn't ?
For the time being, I'm using a boolean variable to control this annoying
fact.
Thanks in advance,
Roger
..NET 2005 and DB developer