mcerk Posted December 10, 2004 Posted December 10, 2004 Hi. I use dataset only to display data. I do updateing with executing INSERT SQL statement with myCommand.ExecuteNonQuery() ok. But after I insert data, I need to refresh dataset, to display correct content. How can I do this, and - is it ok if I do so, or do I have to change methods? tx matej Quote
*Gurus* Derek Stone Posted December 10, 2004 *Gurus* Posted December 10, 2004 You would refresh the data using the same exact method you used to retrieve the data in the first place. Quote Posting Guidelines
mcerk Posted December 11, 2004 Author Posted December 11, 2004 yes, but if I do OleDbConnection.Fill(dataset) then dataset got filled again (previous data is not cleared). so I need to clear it first. how can I do this? Quote
cpopham Posted December 11, 2004 Posted December 11, 2004 dataset.clear() should do it... Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.