Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

TDataSet.State equivalent in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Benj Nunez - 07 Jan 2008 07:10 GMT
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
Morten Wennevik [C# MVP] - 07 Jan 2008 07:41 GMT
Hi Benj,

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

Signature

Happy Coding!
Morten Wennevik [C# MVP]

> Hello experts,
>
[quoted text clipped - 8 lines]
>
> Benj
Marc Vangrieken - 07 Jan 2008 09:12 GMT
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

> Hello experts,
>
[quoted text clipped - 8 lines]
>
> Benj

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.