ColChanging problem on Datatable - Desperate

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



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.


.



Relevant Pages

  • Re: VC++6 About Box Cancel Button
    ... Do you edit the .rc file as a text file, ... a resource and get an image to edit, you are SUPPOSED to get the resize handles. ... >> else, you must create an OnClicked handler for it, and this handler must call ... >> on my MVP Tips site). ...
    (microsoft.public.vc.mfc)
  • Re: message handling problem!
    ... ON_CONTROL_REFLECT forces the call to your class and bypasses the parent class. ... change the prototype of your handler to return type BOOL. ... all the edit controls in my app are derived from CLHGEdit. ...
    (microsoft.public.vc.mfc)
  • Re: WinXP: filetype assoc without an "edit" verb no longer causes ShellExecuteEx to fail
    ... there seems to be no easy way to know if the verb you are ... users will often change their settings to ... often .jpeg files have an "open" handler for image files ... which is different than the default "edit" for Image types. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Bin???
    ... Close the registry editor. ... > Right click one of the saved files, select edit to open it in notepad. ... > Associate Expert - WindowsXP Expert Zone ... >>> Best of Luck, ...
    (microsoft.public.windowsxp.general)
  • Re: [opensuse] Notepad++ replacement needed
    ... It seems terribly hard to understand. ...  but with no luck. ...  how to edit text. ... Ciro Iriarte ...
    (SuSE)