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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:42:11+00:00 2026-06-04T07:42:11+00:00

I have two datasets, first one is generic, second one is typed. I’m trying

  • 0

I have two datasets, first one is generic, second one is typed. I’m trying to update a row and persist it into the database but keep failing.
Here is what I’m trying to do:

Load the data into the generic DS

Merge the typed DS with the generic one.

Update rows in typed DS.

Call AcceptChanges on the generic to persist it into the database

//Generic DS
    DataSet ds = GetData();

//Typed Ds
    var gradeTeamConfigDataSet = new GradeTeamConfigDataSet();

//Merge    
    gradeTeamConfigDataSet.tblGradeTeamConfig.Merge(ds.Tables["default"], true, MissingSchemaAction.Ignore);

      //Update
      if (gradeTeamConfigDataSet.tblGradeTeamConfig != null)
             {

                    gradeTeamConfigDataSet.tblGradeTeamConfig.Rows[0].BeginEdit();

                    //Update row

                    gradeTeamConfigDataSet.tblGradeTeamConfig.Rows[0].EndEdit();
             }
    //Persist        
    gradeTeamConfigDataSet.AcceptChanges();

But when checking the database again it has not updated anything!
Could any one spot the issue, and give me a solution please?

  • 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-04T07:42:12+00:00Added an answer on June 4, 2026 at 7:42 am

    Have you look at this post

    AcceptChanges only updates your rows in the (in memory) dataset, that
    is – marks them as “not needed for actual database update”. If you
    want to update your rows to the database, call your tableadapter’s
    Update method.

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

Sidebar

Related Questions

I have two datasets need to merge. The first one is a big dataset
I've got a bunch of strongly typed DataSet that each have two tables. One
I have two entities ( Dataset and Item ), where the first one contains
First, a little background (greatly simplified): I have two classes, one called Entity and
I have two MS Reports with each their own dataset. The first one works
I have two types of data sets. Both are in same size. One contains
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two DropDownListBoxes one is called ddlDay and the other is ddlMonth. As
I'm using Python 2.6, and I have two datasets, each being a list of
This is a two part question. The first is a specific question about DataSets

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.