how to refresh dataset and binded controls (like textbox) after change in database table.
Posted on 2004-08-05
I have open a form "FormA". It has dataset table, and some controls like textbox are binded to this dataset, e.g.
txtState.DataBindings.Add("Text", myDataSet.Tables("patient"), "state")
While this form is open, I open another form "FormB" and in that I change the state value in the database table, close FormB and then come back to FormA.
Now I have to refresh the dataset and textbox to show the current value of state, how is it possible.
Thanks a lot.