DataSet question

Posted on 2004-11-17
Last Modified: 2010-04-23
I have a question about data changes in a DataSet.

If I populate a textbox with data from a dataset, what event is the best to make an "Update Button" visible based on data changed in the textbox.

Question by:Jedidia
    LVL 25

    Expert Comment

    the textchanged event of the textbox

    Author Comment

    If I set it to that, each tim ethe dataset is updated/refreshed, that event fires.
    LVL 25

    Expert Comment

    True, You could try using the keydown or keyup down event
    LVL 4

    Accepted Solution

    You may be able to use the OnPropertyChanging event. In the Object browser, this information is given:

    Protected Overridable Sub OnPropertyChanging(ByVal pcevent As System.ComponentModel.PropertyChangedEventArgs)
        Member of System.Data.DataSet

    Raises the System.Data.DataSet.OnPropertyChanging(System.ComponentModel.PropertyChangedEventArgs) event.

    pcevent: A System.ComponentModel.PropertyChangedEventArgs that contains the event data.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    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

    13 Experts available now in Live!

    Get 1:1 Help Now