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

  • Home
  • SEARCH
  • 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 8438919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:51:23+00:00 2026-06-10T07:51:23+00:00

I’m using an Xceed grid bound with a DataSet / DataTable . The thing

  • 0

I’m using an Xceed grid bound with a DataSet/DataTable. The thing is, I need to know if changes were made before loading new datas in the grid and therefore, losing changes if I don’t save them then.

But neither the DataSet nor DataTable‘s function getChanges([DataRowState])
return the right thing :S

I’ve found that sometimes dataColumnChangeEvent is called, but NOT dataRowChangeEvent, these are the times where the changes are not saved into the getChanges() function.

This happens when I click out of the grid while in an editing cell instead of selecting an other of the grid’s cell by any way.

Also, I’ve looked and the rowState is to Unchanged, even if the data do is changed :S

Any ideas?

  • 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-10T07:51:25+00:00Added an answer on June 10, 2026 at 7:51 am

    Great! I’ve finnaly found a solution.

    Even if the dataRowChangeEvent doesn’t seem to be called (I’ll explain latter)

    If the only code in the rowChangeEvent is the code below it works :

    Private Sub RowChanged(ByVal sender As Object, ByVal e As DataColumnChangeEventArgs)
        If e.Row.RowState = DataRowState.Unchanged Then
            e.Row.AcceptChanges()
            e.Row.SetModified()
        End If
    End Sub
    

    We check the rowState because we can only setModified() a row wit the Unchanged state.

    We do AcceptChanges() because doing only setModified() removes the changes on the edited cell.

    We do SetModified(0 because if not AcceptChanges() leaves the RowState to Unchanged and therefor it doesn’t get in the table’s getChanges.

    EDIT : This brings an other problem, the dataAdapter uses the datarow’s original and current Value to do update, delete and insert,
    doing “acceptChanges” set OriginalValue to the current Value so delete and Update doesn’t work anymore 🙁

    –More–

    When I said it doesn’t seem to get in the event, it’s because the code below :

    Private Sub RowChanged(ByVal sender As Object, ByVal e As DataColumnChangeEventArgs)
        If e.Row.RowState = DataRowState.Unchanged Then
            e.Row.AcceptChanges()
            e.Row.SetModified()
        End If
        MessageBox.Show("hasError=" & IIf(e.Row.HasErrors, "true ", "false ") & _
                        "; action=" & e.ProposedValue)
    End Sub
    

    neither Shows the message Box nor get the changes in the dataTable’s getChanges()…

    Also, having only

    MessageBox.Show("Changing")
    

    instead of the previons messageBox, Do show the messageBox, and Do get the changes right, BUT it then kindof breaks the event so it doesn’t go further in the newProjectSelected => no new project is loaded, but it only needs a “re-clic”.

    So, I’ve explained how it behaves.

    But it’s soo strange, I’de appreciate if someone would explaine shuch behaviour.

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have thousands of HTML files to process using Groovy/Java and I need to
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters

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.