Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,



I need help. I am currently building data management applications using Winforms and C#. This application has been installed on 10 computers and are connected to one database on the server. Network only in the office.

These applications use the data grid view to display a list of employees.

The main problem now, if users on PC-A has entered a new record or update employee records, data grid view on PC-B is not updated automatically. So if I want to refresh the data grid view on PC-B, I need to press the "REFRESH" button to reload the record.

So the question is now, there are other ways to 'Data Grid View' can be updated automatically?

I do not know what it is named this method, so I hope there is anyone willing to help me in solving this problem. If the my question is already exist, hope someone can give me a link.



Thanks in Advance
Neetesh Agarwal
Posted
Updated 3-Apr-13 21:26pm
v3
Comments
joshrduncan2012 3-Apr-13 11:00am    
Database connectivity?
Neetesh Agarwal 3-Apr-13 13:13pm    
Yeah that I know but when one person update value in database then Its instant reflect to other user

1 solution

This isn't a question we can answer - certainly not based on that little information.
We have no idea what connects the two systems: LAN? Internet? Database? Tin cans and string?

There are so many different ways that this could be done, that the way you do it will depend on what kind of application you are trying to write. An internet chat application for example has different requirements to a LAN based stock control system. An email-based chess game would have further, totaly different needs.

Think about what kind of application you want to produce, and try googling for that. If nothing else, it will give you a better idea what form of communications you will need.
 
Share this answer
 
Comments
Kenneth Haugland 3-Apr-13 11:34am    
To me it sounds like a job for a database and perhaps a WCF service, but unfortunately I dont think they will work on a Tin cans and string :laugh:
OriginalGriff 3-Apr-13 11:49am    
Possibly on iTins and iString? :laugh:
Neetesh Agarwal 4-Apr-13 0:00am    
If you have knowledge then share??????laugh:
OriginalGriff 4-Apr-13 3:35am    
Did you read any of the words I wrote?
Neetesh Agarwal 4-Apr-13 3:52am    
Yeah and after googling , I search about Observer Pattern.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900