A
Aaron Smith
What is the best way to handle data in a multiple user environment? We
have forms that will allow users to add edit and delete data from a
table on SQL server. The data could be edited on multiple machines at
the same time. How do you keep the dataset constantly updated with
changes made to the data? I'm playing with just calling the fill method,
but it seems pretty unstable at times. Especially when deleting records,
they don't seem to remove themselves from the grid when it is deleted
from another form. I am trying to call the fill method on the data
adapter in the Position_Changed event. This seems to work a little bit.
The problem comes in when adding and deleting records. If I go to a new
record and call the fill method, if there is a new record, they get put
in the grid, but then there is no new line to start adding a new record.
As you can see, I'm having multiple problems here.. So how is this
supposed to be done safely? Is there an easy procedure that I am just
not finding?
Aaron
have forms that will allow users to add edit and delete data from a
table on SQL server. The data could be edited on multiple machines at
the same time. How do you keep the dataset constantly updated with
changes made to the data? I'm playing with just calling the fill method,
but it seems pretty unstable at times. Especially when deleting records,
they don't seem to remove themselves from the grid when it is deleted
from another form. I am trying to call the fill method on the data
adapter in the Position_Changed event. This seems to work a little bit.
The problem comes in when adding and deleting records. If I go to a new
record and call the fill method, if there is a new record, they get put
in the grid, but then there is no new line to start adding a new record.
As you can see, I'm having multiple problems here.. So how is this
supposed to be done safely? Is there an easy procedure that I am just
not finding?
Aaron