Re: DataBinding with Unbound Columns and calling EndCurrentEdit
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Wed, 21 Jun 2006 07:37:40 +0200
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.
.
- Prev by Date: Re: get the month (number) and year value from a date
- Next by Date: Re: How to use MSHTML?
- Previous by thread: Making a datarelation (lookup) in a data.detailview and data.gridview
- Next by thread: Re: DataBinding with Unbound Columns and calling EndCurrentEdit
- Index(es):
Relevant Pages
|