ColChanging problem on Datatable - Desperate
- From: "Meridian" <l.waffle@xxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 23:30:32 -0600
Hi;
I have a problem in which I desperately need a soloution I have searched for
days and have
attemped several soloutions, I hope that someone here can set give me a new
direction or
indeed a solution.
The problem I have is this, I have a datagrid and when a user edits a cell
that edit will affect multiple
rows of data. The updated rows need to be shown to the user.
I have wired up the Column changind event on the datatable that is bound to
the datagrid
and refresh the datatable and resetbindings on the datagrid after the edit.
The first time I call the edit everything is ok and the grid is refreshed,
but when I attempt to do the
edit again the columnchanging code will not fire again.
I have attempted to remove the handler in the the columnchanging code and
re-add it after
I am done with the changes - no luck.
I have also put the code to re-add the handler in a sub and called that from
the column changing code
- no luck.
I have also, and this is a big hint I think, place a button on the form and
called the sub that re-adds the
handler to the datatable, then when I edit the grid, my update code is
called, handler is removed, I
then click on the button and voila, the handler is re-added and I can edit
again, I can rinse and repeat
at my convience.
I have tried to call the button click event from the column changing code
with no luck.
I have also just tried to leave the handler on the datatable - no luck.
I have tried to move focus to another control then call the re-add handler
code - no luck.
I have tried, I think every type of option to reset, invalidate whatever to
both the datagrid and the
datatable - no luck.
I am using VS 2003. and have no option to upgrade.
I really hope that I have explained my dilema well enough and that someone
would be so kind
to consider it and offer suggestions.
Thanx in advance.
Tri.
.
- Next by Date: Printing...
- Next by thread: Printing...
- Index(es):
Relevant Pages
|