Dataset does not update when not movenext

Posted on 2004-11-30
Last Modified: 2010-04-15
Why my dataset does not detect changes when cursor or focus stays on the same control. When i edit an entry in datagrid or  textbox and click save. no changes will be saved. It needs to be Move to the next record before it detect the changes. Even GetChanges() returns 0.

Please help..
Question by:dehranph
    LVL 1

    Expert Comment

    did you  "AcceptChanges();" ?
    LVL 1

    Author Comment

    I do this on my finally block. Why i need to move the arrows in the datagrid up or down to make the datagrid/dataset accept the changes.
    LVL 12

    Expert Comment


    Call EndCurrentEdit() method of the CurrencyManager for the datasource you bound the grid to.

    Accepted Solution

    Closed, 50 points refunded.

    Community Support Moderator
    Experts Exchange

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now