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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:07:12+00:00 2026-06-10T06:07:12+00:00

I am creating an application in c# which requires me to embed a database,

  • 0

I am creating an application in c# which requires me to embed a database, I added a new Service based Database . I added it to the application, I created a table via the designer and added data to it. Here I started facing problems. I am able to add new records but unable to edit any rows. I noted a weird behavior.

enter image description here

  • When the rows are just 1 or 2, I am able to edit them without any
    issues.

enter image description here

  • But when the number of rows becomes more , say 5 of 7, I am not able
    to edit any rows,

I am getting an error

The row values updated or deleted either do not make the row unique or
they alter multiple rows

enter image description here

I have neither mentioned a unique constraint nor a not null constraint. All the columns are of data type text. I am not sure what causes this problem. Can somebody explain me whats goin on??

PS: and sometimes,I also get an error as seen in Screenshot 2. For such cases,when I click on Execute SQL , then the data is getting inserted.


***After using an Identity column, the issue is solved. Thanks a lot guys :) 

Now another issue is coming up, I am able to edit in the designer but I also have a dataGridView binded to the database and I am not able to edit(update) values in it, any suggestions??
This is the code, I am using

private void saveButton_Click(object sender, EventArgs e)
        {
                this.Validate();
                this.core3BindingSource.EndEdit();
                this.core3TableAdapter.Update(this.coreDataSet.Core3);
        }***
  • 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-10T06:07:14+00:00Added an answer on June 10, 2026 at 6:07 am

    Niranjan you add primary key on your table in order to don’t create integrity problem.

    CREATE TABLE YourTable
    (
       Id INT IDENTITY(1,1) PRIMARY KEY,
       .......
    );
    

    I suggest you identity treatment, but you can adjust your primary key, it’s just additional suggestion

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

Sidebar

Related Questions

I am creating a PHP based web application which requires simple authentication to use.
I am creating an application which requires login. I created the main and the
i am creating an application which includes dynamic pages. actually, i created some dynamic
I'm creating an application which communicates with the device via FT2232H USB/RS232 converter. For
I am creating an application which involves so many web-service calls. I am using
I am creating a grid application which requires me to send software packets that
I am creating a Status Bar application which requires a URL being entered in
I'm building a multi-threaded windows service application in Delphi XE2 which uses ADO database
I am creating a report which requires returning Lists, and Json data to a
I am creating an application which requires to convert c# object to XML. 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.