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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:01:00+00:00 2026-05-23T03:01:00+00:00

Technologies: C#, .Net, Winforms I have a main form that pulls data from a

  • 0

Technologies: C#, .Net, Winforms

I have a main form that pulls data from a database, and populates numerous different controls. Labels, Textboxes, DataRepeaters, DataGridViews, and tabs filled with those kinds of controls as well.

However, the data is also being pulled in such a way that there are multiple “records” on this form being navigated by a BindingNavigator.

Because of the structure of my code, I can’t easily call a DataAdaptor.update() on whatever control is being validated, (using it’s associated DataTable) so I’m just going to use a commit button instead.

What I’d like to know is “How do I check all the controls to see if they’ve been edited?”

I’m using the binding Navigator buttons as the trigger to “FindEditedControls()”

Current Solution:

DataTable dt = db.GetTable();
dt.RowChanged += new DataRowChangeEventHandler(dtUpdated);

private void dtUpdated(object sender, DataRowChangeEventArgs e)
{
    needsCommit = true;
}

And the button just checks the needsCommit boolean variable. If it’s true, then it asks the user to commit the changes before continuing. If they click “Yes” then it commits the data to the database.

If this is what you were getting, I want to thank you. This works very nicely with DataGridViews. Now to test it with standard form controls.

  • 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-23T03:01:01+00:00Added an answer on May 23, 2026 at 3:01 am

    Hook up to the DataTable.RowChanged event. When it fires, one of your controls has been edited.

    Then, you can check the DataRow.RowState property for a value of DataRowState.Modified for the rows you are binding to.

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

Sidebar

Related Questions

I know that since native delphi and delphi.net are different technologies it is unlikely
I have a requirement to create an application to upload data into database from
Anyone have any comparative thoughts on these three technologies? Each addresses a different VM,
I have an ASP.NET application that uses a custom MembershipProvider to allow users to
I'm implementing a email newsletter sender service using .NET and Windows Server technologies. Are
What are the technologies and programming decisions that make Google able to serve a
What various methods and technologies have you used to successfully address scalability and performance
There are several similar Oracle technologies - Oracle Streams, Oracle Change Data Capture and
I have limited knowledge of Java-based technologies, and for business enforced reasons, I may
I have for some time build n-tier Applications using a database server as the

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.