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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:21:31+00:00 2026-06-13T19:21:31+00:00

I dont know what to keep the heading (still confused, sorry for that). In

  • 0

I dont know what to keep the heading (still confused, sorry for that). In my project, I am trying to update the database table through DataSet. Well I achieved this but when I delete any row in my DataSet and try to update the Database table then VS is showing error –> “Deleted row information cannot be accessed through the row”. Then I searched in Internet I got the solution in this answer. Now my code is not showing any error but to my exclamation the database is being updated with new values of DataSet both existing and deleted too. I dont want to add the deleted rows of Dataset to database table. How to solve this?

In my code I am using DataRowVersion.Original, should I change it? I also tried other values of DataRowVersion but no result.

  • 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-13T19:21:31+00:00Added an answer on June 13, 2026 at 7:21 pm

    //yes before inserting values into database you have to put some check

            foreach (DataRow row in ds.Tables["Table_Name"].Rows)
            {
                if (row.RowState != DataRowState.Deleted)
                {
                    if (row.RowState == DataRowState.Added)
                    { 
                        // Perform insertion in to database
                    }
                    if (row.RowState == DataRowState.Modified)
                    { 
                        // perform updation in to databse
                    }
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i keep getting this error, i dont know why, im still new to c#.
I keep getting this error and I really dont know why. I have tried
i am trying to install JDBC but i dont know how, when you only
I dont know what could be missing here but I keep getting this error
I wrote this matrix addition program and I dont know why but I keep
I have this big problem that i dont know how to fix. I have
I keep getting an NullPointerException, and I dont know why. what the class is
i am trying to overwrite the NSURLConnection Delegate but i dont know where to
(Keep in mind this is on OSX Snow Leopard) I don't know how to
I dont know if this is possible. In SSIS Derived column transformation, can you

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.