473,378 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

TDataSet.State equivalent in C#

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
Jan 7 '08 #1
2 1668
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]
"Benj Nunez" wrote:
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
Jan 7 '08 #2
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

On 7 jan, 08:10, Benj Nunez <benjnu...@gmail.comwrote:
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
Jan 7 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: Xah Lee | last post by:
is it possible in Python to create a function that maintains a variable value? something like this: globe=0; def myFun(): globe=globe+1 return globe
0
by: Bagieta | last post by:
Hi. Does anyone of you knows any good TDataSet descendant working with DB2? I want to connect do DB2 directly without ODBC. Regards Bagieta =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= dbDeveloper...
1
by: Julian Maisano | last post by:
Is there any C# class 'equivalent/replacement' for Delphi's TDataSet? I'm just thinking to translate an application mine, but it's based in a framework (also mine) that often uses TDataSets so I...
2
by: Anthony | last post by:
In C++ you can detect the screensaver state by using something like: BOOL b=SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, NULL, &bOn, FALSE); Is there an equivalent method that I can use in...
8
by: Anthony P. Mancini | last post by:
I'm working on a proof of concept that will ultimately be deployed on a load balancer. For the sake of a preliminary demonstration I created a C# object and marked it's attributes as Public...
6
by: Steve Barnett | last post by:
Is there a .Net equivalent of the GetKeyboardState api? I need to know whether the user is pressing the Ctrl or Shift keys when they click on my usercontrol. Thanks Steve
67
by: Rui Maciel | last post by:
I've been delving into finite state machines and at this time it seems that the best way to implement them is through an intense use of the goto statement. Yet, everyone plus their granmother is...
2
by: Bill Fuller | last post by:
Has anyone here had experience using technologies such as StateMirror (www.statemirror.com) as an alternative to managing state on a per server basis (thus requiring sticky-sessions in a web farm)...
5
by: kiran | last post by:
Hi all, How can we stop a base class to be derived in C++? In java we do that using final keyword. Is there a c++ equivalent? Thanks in advance, Kiran
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.