Re: DataBinding with Unbound Columns and calling EndCurrentEdit

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



ASPNOT,

Are you sure of that, did you save your table in a Session (or somewhere
else) and have set it back using the load of your form in the isPostBack
situation?

Cor

"Aspnot" <NOSPAM_Aspnot_NOSPAM@xxxxxxxxx> schreef in bericht
news:1A282540-28B6-47F8-9F7F-C6A563F6D260@xxxxxxxxxxxxxxxx
I have a form that is setup in a Master/Detail configuration. The Detail
section is represented with a DataGridView. Some of the columns in this
DataGridView control are unbound.

When a user clicks the Cancel button, I loop through the tables in my
DataSet and call EndCurrentEdit() to determine if HasChanges() is True.
And
then prompt the user and allow them to Cancel out of the exit. If the
user
chooses Cancel and any changes have been made to the Master table in the
DataSet, my unbound columns lose their data due to the fact that I called
EndCurrentEdit() on the Master table.

These Unbound columns come from my database, so I would rather not have to
reload them in this scenario.

Do I have to reload them? Is there a way to halt them from getting
refreshed? If not, what is the best event to react to to reload the
information?

PS - I realize that I can add these fields to my DataSet, but I would
rather
not have to do that. This application is currently set to run locally,
but
this company has a remote office that we may link in through web services
and
I would hate to have that extra overhead for every save.


.



Relevant Pages

  • Monitoring App timeout Auto Close
    ... I have IIS pool set up to reload after 30 min of idle. ... system and give them a change to cancel the logout. ...
    (microsoft.public.dotnet.general)
  • Re: Canceling a form submitted to an iframe target
    ... handle a form submit to allow users to submit file uploads without ... requiring a page reload. ... clicking that "cancel" button will then kill/cancel the form submit ... And why is a page reload a problem? ...
    (comp.lang.javascript)
  • REfreshing
    ... At times when I refresh my asp.net page I get the message box: to retry or ... cancel the reload of the page. ... How to fix this? ...
    (microsoft.public.dotnet.framework.aspnet)