Click here to Skip to main content
13,045,417 members (125,227 online)
Rate this:
Please Sign up or sign in to vote.
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 3-Apr-13 4:49am
Updated 3-Apr-13 21:26pm
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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.
Neetesh Agarwal 4-Apr-13 3:59am
I also found that using Timer. I am trying it
Neetesh Agarwal 4-Apr-13 4:23am
Timer is working well but the problem is that in that time when gridview is updating its hang.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 4 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100