Hello!
I'm developing an application for a transportation company. This application is going to be useful for the company's 4 dispatchers. Each of them are going to work with records of transportation information in a datagridview and will of course need to update them. Here's my problem: If one dispatcher updates 1 record in the database, it goes without saying the data on each dispatcher's computer must be refreshed in order to avoid data conflict. (2 dispatchers may select the same record and accidentally overwrite the other's work) My first guess was to refresh the datagridview every 5 seconds or so to avoid errors. However, if a dispatcher is working on a record and the application refreshes the grid before he has time to complete his stuffs, the modified data will be resetted with the database original information.
Does anyone knows how to proceed in a situation such as this one? Thanks!
I'm developing an application for a transportation company. This application is going to be useful for the company's 4 dispatchers. Each of them are going to work with records of transportation information in a datagridview and will of course need to update them. Here's my problem: If one dispatcher updates 1 record in the database, it goes without saying the data on each dispatcher's computer must be refreshed in order to avoid data conflict. (2 dispatchers may select the same record and accidentally overwrite the other's work) My first guess was to refresh the datagridview every 5 seconds or so to avoid errors. However, if a dispatcher is working on a record and the application refreshes the grid before he has time to complete his stuffs, the modified data will be resetted with the database original information.
Does anyone knows how to proceed in a situation such as this one? Thanks!