S
STom
I have a data grid that has a datasource that is a dataset with one table.
I am using a SQLDataAdapter to get the data from the database and do the
updates against and MSDE database. I am consistently running into Update and
Delete concurrency violations.
I am having a hard time pinpointing the exact circumstances where the update
concurrency violation happens. Basically, what I see consistently is an
Update violation when I do:
1. I have 3 rows in my data grid.
2. I delete the bottom two rows.
3. I add a new row.
When I do a save, I have my calls in this order:
1. insert
2. update
3. delete
Apparently this is going to be a little more complex than I thought. For
example, if I add and then delete rows before I save it, what state would
that row be in? It should never be in the database anyway although at one
point it was added and deleted to the table.
Should I have to order of my insert/update/delete in any specific order?
Thanks.
STom
I am using a SQLDataAdapter to get the data from the database and do the
updates against and MSDE database. I am consistently running into Update and
Delete concurrency violations.
I am having a hard time pinpointing the exact circumstances where the update
concurrency violation happens. Basically, what I see consistently is an
Update violation when I do:
1. I have 3 rows in my data grid.
2. I delete the bottom two rows.
3. I add a new row.
When I do a save, I have my calls in this order:
1. insert
2. update
3. delete
Apparently this is going to be a little more complex than I thought. For
example, if I add and then delete rows before I save it, what state would
that row be in? It should never be in the database anyway although at one
point it was added and deleted to the table.
Should I have to order of my insert/update/delete in any specific order?
Thanks.
STom