Home All Groups Group Topic Archive Search About
Author
28 Nov 2007 6:52 AM
Dimitris Milonas
Hello to all,

I would like to inserts/delete some records from a table and Update the
DataAdapter at the end of all the operations. The problem is that I would
like the intermediate changes to be visible in the User Interface (i.e.
DetailView). I am using the following code:

DataRow DataRow1 = DataSet1.Tables["Table1"].NewRow();

DataRow1["CODE"] = "...";
DataRow1["NAME"] = "...";

DataSet1.Tables["Table1"].Rows.Add(DataRow1);

At this point the new row is not visible to the User Interface. That means
that I have to Update the DataAdapter
(DataAdapter1.Update(DataSet1,"Table1")) in order for the new row to be
visible to User Interface. Is there a way the changes to be visible to the
User Interface before Update the DataAdapter?

Thanks in advance
Dimitris Milonas

AddThis Social Bookmark Button