Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8656221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:13:33+00:00 2026-06-12T15:13:33+00:00

My program is split in two parts: A client, in Windows Forms. A server,

  • 0

My program is split in two parts:

  1. A client, in Windows Forms.
  2. A server, made with WCF on a remote web server (IIS).

The client will be used my many different users, in same times.

I have many DataGridView in my client. Those DataGridView are bind to (different) generic list of objects provided by the web service.

I need to refresh the content of those DataGridView quite frequently. I use a timer on the client that call a refresh method.

BUT my problem is: if I use Invalidate(), just the content of current displayed row are updated; if another use remove or add a new object (row), current user won’t see it.
If I refresh the data with rebinding the data, the current selection is lost… Imagine the nightmare if the user was updating data… (yes I could stop the timer when the user edit a cell and restart when user has done his changes, but I hope to find a better method!).

Anybody have see problems like those? Anyone have suggestions?

thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:13:34+00:00Added an answer on June 12, 2026 at 3:13 pm

    What you are describing is a distributed system. You need to implement locks and synchronisation for this kind of software. Sure you can leave it out, but your result will be crap.

    1. Datagridview should only be there for reading.
    2. Editing rows should be done outside DGV. (If all objects are different, well then you are going to have fun)
    3. Lock messages should be sent to the server, which keeps track of this.
    4. Locked objects should be possible to read for other users. Not writing.
    5. Timouts for locked objects need to exist.

    Sorry to dump this on you but your problem is way bigger than you think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Objective: Secure my Java application from reverse engineering. Idea: split the program into two
This program builds a dictionary out of a list based on what two index
There are two large text files (Millions of lines) that my program uses. These
We have a program consisting of three parts. There's the backend which is the
Using g++ and having linker errors. I have a simple program in split into
I've got a C++ template class split into two files using #include directive as
The following program has been running for about ~22 hours on two files (txt,
I have created two comboboxes. I have to create a match the following program,
I am trying separate a CUDA program into two separate .cu files in effort
In my MFC program I am using a splitter to create two panes. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.