refresh dataset from database

mcerk

Well-known member
Joined
Nov 1, 2004
Messages
78
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
 
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?
 
Back
Top