Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining which rows have changes and perform addition
Message
From
16/01/2009 12:17:39
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
16/01/2009 10:02:57
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01374356
Message ID:
01374399
Views:
15
>Good morning listers,
>I have a windows form which is currently updating data correctly (well almost)
>Whenever I change a value on my grid (which is currently in an entitylist) I want to do some additional processing such as update the edited date.
>my question...
>1. how do I know which entities in my entitylist have changes?
>I am thinking that the most logical place to insert this code would be in the hookPreSaveEntity or hookPreSaveEntityList methods.
>thoughts and advice are appreciated.
>thanks
>rick

Hmm.. I have always tried to make all my updates at the time the use updated the single record. I was looking in the business object and entityList to see if there was a property you could look for. I would think there would be a method for GetChangedEntites or something, but didn't see it. If nothing else, you could certainly just use the underlying DataSet and standard code to get all the changed rows. Isn't there also an event that fires when the user changes a row you could update the date then?

I will think on this more as I am sure I am not thinking clear today.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform