Hello experts,
I used to program in Delphi and used TDataSet.State to check on the
status of a database operation (Insert, Update, Delete, Browse). Now
that I'm into C#, I would like to know if there is a property or class
that exists and has this kind of behavior.
Many thanks in advance.
Cheers,
Benj
Alberto Poblacion - 07 Jan 2008 07:43 GMT
> I used to program in Delphi and used TDataSet.State to check on the
> status of a database operation (Insert, Update, Delete, Browse). Now
> that I'm into C#, I would like to know if there is a property or class
> that exists and has this kind of behavior.
I'm not familiar with Delphi, but the DataSet has a collection of Tables,
and each DataTable has a collection of Rows, and each DataRow has a property
called RowState which tells you if it is Added, Deleted, Modified or
Unchanged. Is this what you wanted to find?
Peter Bromberg [C# MVP] - 07 Jan 2008 12:01 GMT
As Alberto indicated, in addition to the DataRow, DataTables support a series
of events you can subscribe to. Here's the url to the MSDN Documentation page
listing them:
http://207.46.199.254/en-us/library/system.data.datatable_events(VS.80).aspx
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
> Hello experts,
>
[quoted text clipped - 8 lines]
>
> Benj