LINQ to SQL Classes question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

well I have a question about something I thought would be trivial but
it's driving me nuts.
In my app I have a list of objects (let's say users) that have been
loaded with a datacontext.
I can add users, list them, etc.
But if I want to edit an user, my problems begin. I pass an user
object to a form, with databound controls to its properties (name,
surname, password...).
Because they are bounded, when I make any change to any control, the
underlying object results changed at the time also.
It has two effects:
a) A list of users shown in other form (from which I select the user
to edit) shows every change I make in edit form.
b) I am unable to cancel editing, because although changes are not
saved to database, they are in memory.

Any help?

Thanks for any help
.



Relevant Pages

  • RE: Ribbon primarily designed to drive sales rather than improve usabi
    ... using a new app or OS you may ... regularly with Excel 2003. ... looking for, can you believe it, edit, replace!!! ... I see there is a tool to customize the ribbon which cost $30 at think ...
    (microsoft.public.office.misc)
  • Re: MT-Newswatcher feature request
    ... then swipe over it. ... If a newsreader treats a click on an ... you can't edit or copy a link the same way you'd ... inconsistent with how you'd edit or select text anywhere else in the app. ...
    (comp.sys.mac.apps)
  • Re: weird delays when editing code for CF project with VS 2003
    ... network location of our assembly key file. ... >> I'm developing a CF app with VS 2003. ... >> to allow smooth editing? ... It is so bad that I can edit the code faster in ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Passing parameters from page to page in HTA app
    ... > At the moment I have a small app that gives them a list of events. ... > add/delete from the list or select an event and select edit. ... > itinerary for that event as well as add client names to the event. ... > involve formatting the collected data and outputting it as a .doc file. ...
    (microsoft.public.scripting.jscript)
  • Re: Locking on Update Query
    ... I should have said does tbl_CreditApplicationInput have a timestamp field ... To update a linked table on an SQL Server using ODBC, ... When the app to edit is chosen, the query puts the data from that app ...
    (microsoft.public.access.queries)