473,396 Members | 1,703 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.

data change notification

I developing a large project that will have numerous text boxes, datetime
controls, checkboxes etc. all data bound to a
dataset/datatable/tableadapter.

I'm wondering what is the normal way to get notification from the program
that the user has changed some databound item? I know I can tap into the
OnChange event of all these individual controls, however it seems like there
should be something exposed at a more common level.

I looked at data table RowChanging, ColumnChanging events but they don't
trigger until I have updated the data. I want to know when the client makes
a change so I can enable a "Save your changes" button or similar.

Any suggestions?

Rick
Mar 22 '07 #1
4 2566
On Mar 21, 7:10 pm, "Rick" <R...@LakeValleySeed.comwrote:
I developing a large project that will have numerous text boxes, datetime
controls, checkboxes etc. all data bound to a
dataset/datatable/tableadapter.

I'm wondering what is the normal way to get notification from the program
that the user has changed some databound item? I know I can tap into the
OnChange event of all these individual controls, however it seems like there
should be something exposed at a more common level.

I looked at data table RowChanging, ColumnChanging events but they don't
trigger until I have updated the data. I want to know when the client makes
a change so I can enable a "Save your changes" button or similar.

Any suggestions?

Rick
It really depends on the specific controls used; since it is on a
control-by-control basis. There are several event handlers available
per type of control that can provide relatively good flexibility in
event capturing.

Regards,

Enrique Martinez
Sr. Software Consultant

Mar 22 '07 #2
Rick,

It seems for me that you want to do these changes on an underlying database.

Maybe the binding events
http://msdn2.microsoft.com/en-gb/library/ms613490.aspx

Cor

"Rick" <Ri**@LakeValleySeed.comschreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
>I developing a large project that will have numerous text boxes, datetime
controls, checkboxes etc. all data bound to a
dataset/datatable/tableadapter.

I'm wondering what is the normal way to get notification from the program
that the user has changed some databound item? I know I can tap into the
OnChange event of all these individual controls, however it seems like
there should be something exposed at a more common level.

I looked at data table RowChanging, ColumnChanging events but they don't
trigger until I have updated the data. I want to know when the client
makes a change so I can enable a "Save your changes" button or similar.

Any suggestions?

Rick

Mar 22 '07 #3
"Rick" <Ri**@LakeValleySeed.comwrote in
news:#m**************@TK2MSFTNGP02.phx.gbl:
I'm wondering what is the normal way to get notification from the
program that the user has changed some databound item? I know I can
tap into the OnChange event of all these individual controls, however
it seems like there should be something exposed at a more common
level.
The standard controls don't have a standard event.

However, if you build your own classes/controls, I believe you can
implement INotifyPropertyChanged:

http://msdn2.microsoft.com/en-
us/library/system.componentmodel.inotifypropertychanged.aspx

Otherwise if you're checking to see if a record has changed, you could just
check a timestamp. If the timestamp is not the same as the one in the
record, then you can assume the record has changed.
Mar 22 '07 #4
Thanks everyone.

To me it seemed like this would be something built into the net framework
since notifications for this type of change to data can't bee all that rare,
however...

Perhaps it is just my programming background having used Delphi and
IBObjects where data changes sent out a notification event and could
optionally change colors (like light blue for edit mode) to all the controls
that were attached to the data table.

I guess I'll have to do my homework and roll my own if I want this type of
thing.

Rick
Mar 22 '07 #5

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

Similar topics

19
by: Tom | last post by:
Hi, I have the following problem. I analyse data from a file. When I am done analysing all the data that was in that file, I want to let my program wait until this specific file has changed...
0
by: TheCoder | last post by:
I am making a D-base with web conectivity for my class project. I have everything working but the subit button sends the data to the correct fields but afterwards it wants to reproduce new blank...
3
by: Adie | last post by:
I'm using TcpClient in blocking mode with NetworkStreams and would like to be able to give notification that data was sent - I presume this must be possible? But anyone know how?
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
2
by: Mo Quamar | last post by:
I am writing a little vb/vb.net application to check every 15 minutes if a record or certain records have changed in a specific table, If record/records have changed then get the index of that...
19
by: Simon Verona | last post by:
I'm not sure if I'm going down the correct route... I have a class which exposes a number of properties of an object (in this case the object represents a customer). Can I then use this...
3
by: sham | last post by:
Hi to all, I have an object that has a property numberOfFilesDeleted which is an integer. I want to bind a label to it so that when the value changes, the label gets updated on the screen. I...
0
by: Eron Wright | last post by:
We heavily use the ASP.NET Cache with file dependencies. The files are located in approximately 200 directories (I understand that monitoring largely occurs on a per-directory basis). As of...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
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
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.