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 1100823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:56:28+00:00 2026-05-17T00:56:28+00:00

I have a DataGridView that displays data from a MS Access database. I’m using

  • 0

I have a DataGridView that displays data from a MS Access database. I’m using a DataSet with a TableAdapter and a BindingSource to link the data to the DataGridView:

        tableAdapter = new AccountsTableAdapter();

        dataTable = new Accounts.AccountsDataTable();
        tableAdapter.Fill(dataTable);

        tableBindingSource = new BindingSource();
        tableBindingSource.DataSource = dataTable;

        dataGridView1.DataSource = tableBindingSource;

I want to know how can I detect or get notified when the database table gets modified from outside my application – row updates, inserts, deletes performed on the database from the Access interface or from a different app.

Also, upon this presumed notification, how can I update my DataSet so that only the affected rows should be updated -> receive only the newly inserted rows, the affected field values of the modified ones and the indexes of the deleted.

So, basically, what I’m trying to obtain is a way of synchronizing my database table with the DataGridView. I’ve already managed to save to the database the rows that I modify or insert in the DataGridView, now it would be nice to be able to perform the reciprocal side of this database – view binding.

  • 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-05-17T00:56:29+00:00Added an answer on May 17, 2026 at 12:56 am

    The only way I know of is to poll the database. If the data has a LastModified field, you can make requests to the database to get updated rows and then merge the results into your DataSet.

    For example, let’s say you populate the form from the sql “SELECT * FROM Contact”. Then every minute or so, run the query “SELECT * FROM Contact WHERE LastModified > @LastFetched” where @LastFetched is the time you last got updates. You’ll want to get the value for @LastFetched from the database since the client machine and database server might not have their times sync’ed close enough to work properly.

    Then you just need to update the DataSet with the updates. If the form is bound properly, it should automatically be updated.

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

Sidebar

Related Questions

I have a datagridview that displays data from an XML file. The DGV is
I have a DataGridView with cells from a database file that contains data. Basically,
In my application I have a DataGridView control that displays data for the selected
I have a vb program that reads data from an excel sheet and displays
I have a DataGridView that's bound to a DataSet. It has columns DateCreated, Weight,
Ok, I have a DataGridView that I'd like to load with data that I'm
Hey guys, I have an application that I want to display some data from
I have a program that displays numbers in a System.Windows.Forms.DataGridView . I'm formatting those
I have a DataGridView that displays a list of MMS Messages. To differentiate between
I have written a winform program that gathers information from several database tables and

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.