Tabed Dialog and server updates.

  • Thread starter Thread starter William Stacey [MVP]
  • Start date Start date
W

William Stacey [MVP]

Say you have a tabed dialog window like the the MS DNS Properties Window.
You can go add/change/delete a bunch of stuff on each tab and hit cancel and
nothing on the server is changed (easy part). However, if you hit Apply or
OK, you then need to figure out what all was changed and do the
deletes/changes/add in some kind of order on the server. Things like
Deletes are interesting as you can't just use the list box current state to
figure that out. You would have to have saved the delete operation in some
state somewhere. Then the user adds back the same thing they deleted, etc.
This gets confusing. Any general pattern here or other such links or ideas
on this? TIA
 
Hi William,

I agree, basically we need save the deleted information somwhere, I think
databinding may help us in this scenario, we may create our own data source
class and bind the controls to it, then we can do some work when user
adding /removing records from it and get the changed records at last. It's
a bit like the function of DataTable class.

Hope it helps.

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
 
Back
Top