Solved

Problems with running C# program on seveal computers on a network.

Posted on 2013-12-20
6
364 Views
Last Modified: 2013-12-21
Hey guys!!!

I have an app that is running on several computers.  In this app I have a timer that retrieves information from the web and saves it to a table which updates the dgv.  My question is when one employee selects a row in the grid how to locked it on all the other computers as well as all the other rows with the same ID.

Thanks,
Jerry
0
Comment
Question by:JDL129
  • 3
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
ktaczala earned 250 total points
ID: 39733764
Don't think you can lock it but, you could use stored procedure to check if record has been updated by someone else, then refresh record.
0
 
LVL 22

Assisted Solution

by:p_davis
p_davis earned 250 total points
ID: 39733807
you would have to modify for your specific scenario/setup but you could get index/primary key for the row and set that as a static variable/object to enable/disable row editing as needed.
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39733808
and then, maybe give a message/error that the row isn't editable
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Closing Comment

by:JDL129
ID: 39733816
Great ideas!!  I wasn't thinking along those lines.
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39733820
well, thank you. glad to have helped.
0
 

Author Comment

by:JDL129
ID: 39733873
I was thinking about adding a field to the table and populating it with the computer name when it is selected.  When the timer refreshes the dgv it would only select the rows with the current computer name or blanks in the new field.  That way none of the other computers would have access to the rows.

Thanks again, you guys are wonderful!!!

Jerry
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question