Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET
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 5:49am
Edited 3-Apr-13 22:26pm
v3
Comments
joshrduncan2012 at 3-Apr-13 11:00am
   
Database connectivity?
Neetesh Agarwal at 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
good
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.
  Permalink  
Comments
Kenneth Haugland at 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 at 3-Apr-13 11:49am
   
Possibly on iTins and iString? :laugh:
Neetesh Agarwal at 4-Apr-13 0:00am
   
If you have knowledge then share??????laugh:
OriginalGriff at 4-Apr-13 3:35am
   
Did you read any of the words I wrote?
Neetesh Agarwal at 4-Apr-13 3:52am
   
Yeah and after googling , I search about Observer Pattern.
Neetesh Agarwal at 4-Apr-13 3:59am
   
I also found that using Timer. I am trying it
Neetesh Agarwal at 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
0 Mathew Soji 309
1 BillWoodruff 300
2 Afzaal Ahmad Zeeshan 252
3 DamithSL 225
4 Maciej Los 215
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 4 Apr 2013
Copyright © CodeProject, 1999-2014
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