473,385 Members | 1,347 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,385 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 1740
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,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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: 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...

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.