Updating a DataTable?

I have a DataTable that gets filled with multiple sets of records. Each set contains 5-7 records. Once the DataTable is filled, it is then bound to a BindingSource. The BindingSource has a filter applied to it "testNO = ?" (testNO represents each set of records).

I have a two DataGridView's, DGV1 contains the "testNO" and DGV2 contains a set of records which is determined by the "testNO" in DGV1.

In DGV2, there are several 2 columns that get updated. What I noticed was that when I switched to another "set" of data and then went back to the "set" that had 2 columns updated...the updates weren't there. The changes that were made....were they to the DataTable or DGV2?

What do I need to do to ensure the DataTable gets the updates?  I tried using the statement "DataTable.AcceptChanges" but that didn't seem to work.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fernando SotoRetiredCommented:
Can you post the code for this please.
BlakeMcKennaAuthor Commented:
I figured it out. I had to call the AcceptChanges method of the DataTable.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BlakeMcKennaAuthor Commented:
I figured it out.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.