Groups | Blog | Home
all groups > c# > january 2008 >

c# : TDataSet.State equivalent in C#


Benj Nunez
1/6/2008 11:10:37 PM
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,

Morten Wennevik [C# MVP]
1/6/2008 11:41:00 PM
Hi Benj,

I'm not familiar with the TDataSet, but you might be looking for
DataSet.HasChanges()
DataSet.HasChanges(DataRowState)


--
Happy Coding!
Morten Wennevik [C# MVP]


[quoted text, click to view]
Marc Vangrieken
1/7/2008 1:12:33 AM
Hi,

I'm familiar with Delphi and I don't think there's an equivalent in
DataSet or DataTable. Beware that a TDataSet actually "maps" to a
DataTable in .NET, so don't forget to look for properties there (I'm
always making that mistake :-))

The question here is; what are we doing with State? I remember
constantly checking it in a previous project a long time ago. The
TDataSet had to be in a certain mode if you wanted to do things or it
would get angry with you.. The .NET dataset behaviour is not modal
afaik...

Why would you like to have state in your case? Maybe we can figure out
how to do it in .NET.

Kind regards,
Marc

[quoted text, click to view]
AddThis Social Bookmark Button