473,396 Members | 1,786 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,396 software developers and data experts.

ADO.NET OnRowChanged


I've developed an application that uses DataSet's for data storage. Now
I had this idea to make things easy that I could hook into the
DataTable's OnRowChanged delegate to know when to Update the dataset. So
when a OnRowChanged is fired I connect to my local database and invoke
Update on the dataset. Only problem is while in the callback the row hasn't
actually been added to the dataset back. So what again is the different
between OnRowChanged and OnRowChanging?
This is very fustrating. I dont like having to explicitly Update my
database everyplace I decided to change the data, but hey I'm kind of now
using the disconnected 'feature' of DataSet's. :)

- Andrew
Nov 15 '05 #1
2 1741
Hi John,

This is a bit unusuall concept.
Why would you need to sync data immediately?
And yes, RowChanged won't work for you.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
"John Smith" <jo**@smith.com> wrote in message
news:cu**********************@twister.tampabay.rr. com...

I've developed an application that uses DataSet's for data storage. Now I had this idea to make things easy that I could hook into the
DataTable's OnRowChanged delegate to know when to Update the dataset. So
when a OnRowChanged is fired I connect to my local database and invoke
Update on the dataset. Only problem is while in the callback the row hasn't actually been added to the dataset back. So what again is the different
between OnRowChanged and OnRowChanging?
Changing occurs before the row is Changed.
This is very fustrating. I dont like having to explicitly Update my
database everyplace I decided to change the data, but hey I'm kind of now
using the disconnected 'feature' of DataSet's. :)

- Andrew

Nov 15 '05 #2
Hi John,

This is a bit unusuall concept.
Why would you need to sync data immediately?
And yes, RowChanged won't work for you.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
"John Smith" <jo**@smith.com> wrote in message
news:cu**********************@twister.tampabay.rr. com...

I've developed an application that uses DataSet's for data storage. Now I had this idea to make things easy that I could hook into the
DataTable's OnRowChanged delegate to know when to Update the dataset. So
when a OnRowChanged is fired I connect to my local database and invoke
Update on the dataset. Only problem is while in the callback the row hasn't actually been added to the dataset back. So what again is the different
between OnRowChanged and OnRowChanging?
Changing occurs before the row is Changed.
This is very fustrating. I dont like having to explicitly Update my
database everyplace I decided to change the data, but hey I'm kind of now
using the disconnected 'feature' of DataSet's. :)

- Andrew

Nov 15 '05 #3

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

Similar topics

0
by: John Smith | last post by:
I've developed an application that uses DataSet's for data storage. Now I had this idea to make things easy that I could hook into the DataTable's OnRowChanged delegate to know when to Update the...
6
by: Babu Mannaravalappil | last post by:
Can somebody please help me figure out why the following method exceptions out? Execution at the line marked with ********** hangs for about 15 seconds and then I get an error that says an...
5
by: TheNedMan | last post by:
I was looking at one of the Microsoft VB.net sample apps and I couldn't believe what I was seeing: apparently in VB you can declare an event with the name X and refer to it in code with the name...
3
by: TheNedMan | last post by:
Sorry for the repost, but I want to get to the bottom of this... From the Microsoft sample "How-To Create an Offline Application": Public Delegate Sub CustomersRowChangeEventHandler(ByVal...
6
by: Mark Chambers | last post by:
Hi there, Does anyone know why the "ColumnChanged" event isn't fired when "Merge()" is called below. "OnRowChanged()" is fired however: Thanks in advance. private static void Test() {...
0
Logan1337
by: Logan1337 | last post by:
This is driving me nuts. I have an auto-incrementing identity column in my SQL CE database and am using ADO.NET data tables in conjunction with it. Thus, my "solution" (if you can call it that,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.