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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:29:58+00:00 2026-05-23T20:29:58+00:00

I have a dataset bounded to a listbox in a Windows CE application using

  • 0

I have a dataset bounded to a listbox in a Windows CE application using SQL Server CE.

There is only one table in the dataset named “Codigos” with two fields: an id and a “code” field.

I inserted manually some data into my table and loads fine into the listbox.

The problem happens when I try to add a new value to the listbox and then save it.

This is the code I’ve tried:

DatalogicDataSet.CodigosRow newCodigosRow = datalogicDataSet.Codigos.NewCodigosRow();
newCodigosRow.codigo = "003";
datalogicDataSet.Codigos.Rows.Add(newCodigosRow);

This loads a new row into the listbox with the “003” value.

I associated to a click event in a button the code to update the database:

    private void button1_Click(object sender, EventArgs e)
    {
        datalogicDataSet.AcceptChanges();            
    }

I also tried this:

    private void button1_Click(object sender, EventArgs e)
    {            
        try
        {
            this.codigosBindingSource.EndEdit();
            this.codigosTableAdapter.Update(this.datalogicDataSet.Codigos);
            MessageBox.Show("Update successful");
        }
        catch (System.Exception ex)
        {
            MessageBox.Show("Update failed");
        }
    }

But neither of them worked, the database is not updated.

Any suggestions?

  • 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-23T20:29:59+00:00Added an answer on May 23, 2026 at 8:29 pm

    The solution in case anyone happens to find the same problem.

    The problem was that the database was being updated correctly, but not the one in my computer, only the one in the terminal with windows CE. This happens because the application copies the database into the Windows CE terminal device when it’s executed through Visual Studio 2008.

    So each time I executed the application it loaded the database in my computer with the original data instead of the updated data, so it seemed to work wrong, but the one in the terminal device was being correctly updated.

    When you generate your production program and install it into the device with Windows CE it won’t have that problem and will update the database correctly.

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

Sidebar

Related Questions

net with vb and sql server 2005. i have DataSet with 3 tables in
I have a dataset objds. objds contains a table named Table1. Table1 contains column
I have a dataset that gets populated from a stored proc in sql server.
I have a DataSet that contains a few columns. One of these columns is
I have a dataset in MySQL where using limit is already an expensive query,
I have a dataset that points to a View in my SQL database, and
I have a dataset and I write it's values to an excel file using
I have a DataSet with multiple tables (distinct schema). I want to generate table
i have Dataset ds DataSet ds = new DataSet(); SQL = SELECT * FROM
I have a DataSet named dsView that contains data. Here is the code 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.