CellEditingEnded provides the previous value in the edited cell, I need the new one - How?

I am implementing a minimal Calculation Chain restricted to the current row. When the user types some new
value in a cell (part of a column named "Length"), some sections of the row are re-calculated.
See my handler code:
The problem is that the value found in gridModel.Length is the old one, while I need the one just typed by the user.
TIA

That is because the CellEditingEnded event is raised before the a cell edit is committed so the new value is not yet available:
https://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.celleditending%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
You better handle this kind of logic in the setter of the *Length properties in the GridModel class:
private string _SomeLength;
public string SomeLength {
get {
return _SomeLength;
set {
_SomeLength = value;
recalculateLengthDependingCells();
private void Validate() {
//validation logic...
Please remember to close your threads by marking helpful as answer and then start a new thread if you have a new question.

Similar Messages

  • Activate one mac deactivate another turns into trial version on the new one

    while deactivating one mc and acitvating the CC on another - I only get the trial version on the new one - how can I use the full subsribtion on the new one - besides the ilustrator does not open at all.

    Sign in, activation, or connection errors | CS5.5 and later
    The rest we can't know. you have not provided any exact system info.
    Mylenium

  • HT1751 i bought a new, larger external hard drive. copied my itunes library from the old drive to the new one, changed the libarary location in Edit/Preferences/Advanced to the new drive. iTunes will not start or run unless old hard drive plugged in.??

    I bought a new, larger external hard drive. I have my iTunes library on the external drive instead of C: drive, Using Windows 7.
    I copied my itunes library from the old drive to the new one, changed the libarary location in Edit/Preferences/Advanced to the new drive.
    iTunes will not start or run unless the old hard drive is plugged in.
    If I disconnect the old drive iTunes shuts down.
    Any ideas. ??

    Hello kskip,
    Thank you for providing so much information about what is going on.  It sounds like you have setup iTunes to save new content to your new external hard drive in iTunes>Preferences, but it sounds like iTunes is not opening iTunes Library.itl file on the new external drive.  You have one last step to take to have iTunes point to your new external hard drive rather than your old one:
    Steps to create or choose a different iTunes Library file
    If iTunes is running, quit iTunes.
    If you are using Windows, hold down the Shift key and from the Start menu and choose All Programs > iTunes > iTunes.
    You should see the following screen:
    Additional information
    If you do not see the screen above, then you did not hold the correct key at the correct time. You may want to try again. Note that if you pinned iTunes to the Start menu programs, and open it that way, it may not work.
    Once you select "Choose Library," you will need to navigate to the iTunes Library.itl file on your new external drive. 
    You can find the full article here:
    iTunes: How to open an alternate iTunes Library file or create a new one
    http://support.apple.com/kb/ht1589
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • My ipod touch broke then replaced it with a new one. I already dloaded iOS5 on the old one. When I connected my new unit it says it won't load the previous back because the new one is not up to date... Do I really have to download iOS5 again?

    My ipod touch broke then replaced it with a new one. I already dloaded iOS5 on the old one. When I connected my new unit it says it won't load the previous back because the new one is not up to date... Do I really have to download iOS5 again?

    Yes, you have to update the iPod in order to retore from backup. The iOS on the "new" has to be aequal to r greater than on the iPod from which the backup was made.  The iOS downloads are unique to an iDevice and model (the one for a 3G iPod will not work for a 4G iPod).

  • I try to open I photo and  I get the message, your iPhoto library is damaged...please restore from backup. But i din't made backup copy. How can i delete previous library and work wrom the new one?

    I try to open I photo and  I get the message, your iPhoto library is damaged...please restore from backup. But i din't made backup copy. How can i delete previous library and work wrom the new one?

    Try this (assuming you're using iPhoto 12): make a temporary, duplicate copy of the library and try the three fixes below in order as needed:
      Fix #1
    delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your Home/Library/Preferences folder. 
    delete iPhoto's cache files that are located in your Home/Library/Caches/com.apple.iPhoto folder.
    reboot, launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding the the Option key.  You'll also have to reset the iPhoto's various preferences.
    Fix #2
    Launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library.
    Select options #1, #2 and #6. 
    Fix #3
    Rebuild the library using iPhoto Library Manager as follows:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I do video productions for a small local TV station. I use Final Cut Express to edit. I need a new video camera but am at a loss as to what to buy. I know I will get a digital camera but do not know the difference between just digital and digital HD.

    I do video productions for a small local TV station. I use Final Cut Express to edit. I need a new video camera but am at a loss as to what to buy. I know I will get a digital camera but do not know the difference between just digital and digital HD. Also, I can not afford an expensive camera and need some advice on which of the available cameras would be best and also work well with a Mac. One last issue, I currently use a Panasonic #CCD camera that takes a tape. When I load video to Final Cut the audio and video are out of sinc. Go figure. Can anyone help with these questions. Karen

    Hello Karen,
    If you are using Final Cut Express, then look for camcorders that are AVCHD camcorders.  Look especially for the AVCHD logo and specific mention of AVCHD in the specs.  Most of the major manufacturers produce good quality camdcorders - Canon, Sony, etc.
    Also, be aware that there are a lot of "not quite AVCHD" camcorders on the market (sometimes they say they record video as MPEG4-H.264/AVC) - buyer beware!
    Most everything you are going to find on the market today is HD, which stands for "high-def".
    Regarding your question about the Panasonic camcorder, it's best if you post that as a separate question, and please identify the specific model camcorder and the Easy Setup you are using in FCE.

  • I replaced my cracked iphone and had my pictures downloaded to my new one. how do i delete them from my new iphone. it doesnt give the option to delete any of the previously saved pictures.

    I cracked my phone and replaced it. most of my pictures were transfered from the cracked iphone to the new one. however, it is not allowing me to delete any of the oringial pictures from the cracked phone on the new one. i am running out of space and want to get rid of pictures i really dont need.

    Okay, sorry I was thinking you wanted to delete the pictures on your old iPhone.  Go into your camera roll then tap the albums button to get to the album view then tap the edit button (right top) then tap the red circle to delete that album. 

  • Getting the original values in table maintenance and the new one and send t

    Hello experts,
    In table maintenance, I need to capture the original values in that selected column/field and
    also the new one and send it to email. For example, I have a field in my z table named zaddress and whenever
    the user changes the contents of that selected row I need to get/fecth the original value and the new and send it to email.
    So the email will be something like this:
    Dear Admin,
    Changes were made to ztable. Here are the changes:
    Customer : Customer 1
    Order no : 1
    Original Address : example address A
    New Address : example address B
    NOTE: Do not reply to this email.
    Again, thank you guys and have a nice day!

    Hi Vijay,
    <b>1</b>.
    If u r using Modulepool programming to change the field contents ,u just capture field value into one  variable .This is possible in <b>PBO</b>.before displaying .once u change the field value and press something ,now capture changed value in another variable .This is possible in <b>PAI</b>.After pressing something to modify Database.
    I think u can get one idea after reading this .
    <b>2</b>.
    For sending mail it is not a problem.
    You can check the following code.
    *-------Mail related tables ,structures and variables
    DATA:
       w_subject       LIKE sodocchgi1,
       i_pack_list     LIKE sopcklsti1 OCCURS  1  WITH HEADER LINE,
       i_objhead       LIKE solisti1   OCCURS  1  WITH HEADER LINE,
       i_contents_text LIKE solisti1   OCCURS 10  WITH HEADER LINE,
       i_cont_bin      LIKE solisti1   OCCURS 10  WITH HEADER LINE,
       i_objhex        LIKE solix      OCCURS 10  WITH HEADER LINE,
       i_receiver      LIKE somlreci1  OCCURS  1  WITH HEADER LINE,
       i_listobject    LIKE abaplist   OCCURS  1  WITH HEADER LINE,
       pdf             LIKE tline      OCCURS 100 WITH HEADER LINE,
       content_out     LIKE solisti1   OCCURS 0 WITH HEADER LINE.
    DATA:
       tab_lines       TYPE i,
       doc_size        TYPE i,
       att_type        LIKE soodk-objtp,
       obj_desc        LIKE w_subject-obj_descr,
       sent_to_all     LIKE sonv-flag,
       client          LIKE tst01-dclient,
       name            LIKE tst01-dname,
       objtype         LIKE rststype-type,
       type            LIKE rststype-type,
       is_otf          TYPE c ,
       no_of_bytes     TYPE i,
       pdf_spoolid     LIKE tsp01-rqident,
       jobname         LIKE tbtcjob-jobname,
       jobcount        LIKE tbtcjob-jobcount,
       pn_begda        LIKE sy-datum,
       val(1)          TYPE c,
       pripar          TYPE pri_params,
       arcpar          TYPE arc_params,
       lay             TYPE pri_params-paart,
       lines           TYPE pri_params-linct,
       cols            TYPE pri_params-linsz,
       spool_name      TYPE pri_params-plist.
      CLEAR :w_subject,
             sent_to_all,
             i_pack_list[],
             i_objhead[],
             i_cont_bin[],
             i_contents_text[],
             i_receiver[].
      i_cont_bin = '  |  '.
      APPEND i_cont_bin.
    Subject of the mail.
      obj_desc  = 'Outstanding Appraisals' .
      w_subject-obj_name  = 'MAIL_ALI'.
      w_subject-obj_descr = obj_desc.
    Body of the mail
      DATA :head_desc LIKE i_contents_text,
            body_desc LIKE i_contents_text.
      i_contents_text = space.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      CONCATENATE
      'Please refer to the attached list of appraisal(s) that require your'
      'attention. Please log in to the eHR System and use the eAppraisal'
      'function to work on it.'
      INTO body_desc
      SEPARATED BY space.
      i_contents_text = body_desc.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      CLEAR body_desc.
      i_contents_text = 'Thank You.'.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      i_contents_text = space.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      CONCATENATE '(Note: This is system generated message, please'
                  'do not reply'
                  'to this Email.)'
               INTO i_contents_text
               SEPARATED BY space.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
    Write Packing List (Body)
      DESCRIBE TABLE i_contents_text LINES tab_lines.
      READ     TABLE i_contents_text INDEX tab_lines.
      w_subject-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
      i_contents_text ).
      CLEAR i_pack_list-transf_bin.
      i_pack_list-head_start = 1.
      i_pack_list-head_num   = 0.
      i_pack_list-body_start = 1.
      i_pack_list-body_num   = tab_lines.
      i_pack_list-doc_type   = 'RAW'.
      APPEND i_pack_list.
      CLEAR  i_pack_list.
    Create receiver list
       i_receiver-receiver = g_email_next_man.
      i_receiver-rec_type = 'U'.
      APPEND i_receiver.
      CLEAR  i_receiver.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_subject
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = sent_to_all
        TABLES
          packing_list               = i_pack_list
          object_header              = i_objhead
          contents_bin               = i_cont_bin
          contents_txt               = i_contents_text
          receivers                  = i_receiver
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc NE 0.
      ENDIF.
    I think it helps u something.
    <b>Thanks,
    Venkat.O</b>

  • My phone is water damaged and i bought new iphone 5S can i restored the data from my previous phone cloud backup to the new one

    my phone is dead due to water damaged and i bought new iphone 5S. can i restore the data from my previous phone cloud backup to the new one?

    how? i can see the backup from the phone cloud setting but there is nothing to click to restored. the one ive got now is since last year

  • When I try to edit my payment method it keeps saving the old card and not updating to the new one?

    When I try to edit my payment method it keeps saving the old card and not updating to the new one?

    You likely need to change the default application(s) assigned for opening files to point to the new ones.  HOw you do that depends on which operating system you have. If you search Google you should be able to find out how to change the default programs for different files.

  • I use iBookAuthor to make a textbook for my students; I revised it, including title page, but when I export it and upload it to my iPad, the old title page appears, even though I've deleted the older version of the text before I upload the new one.

    Last year I produced a textbook using iBookAuthor for my students. I exported it as an iBook and they uploaded it to their iPads. This year, I revised it, including revising the title page. However, when I upload the new version, the old title page is shown, not the new one. I deleted the older version of the textbook before I did this. I've been told that I can cut and paste each revised chapter into a new template and that will work; however, title page and glossary can't be cut and pasted. Any thoughts for getting the entire new version on the iPad? I'm also told that if it is uploaded to an iPad that never had a previous version of this textbook, it will upload correctly. But my iPad has had several older versions, now deleted.

    I had a similar issue when trying to create an iBook file to submit for course credit for one of the Apple Learning Essentials classes I took. I had a book I'd started previously which I updated and submitted, and then had to make some edits to for the course evaluator. I made the edits, and when I previewed the book in iBooks Author, it looked correct, but whatever I sent to him only showed some of the edits - for example a new page I created was there, but some edits I made to image captions and the title page image were not.
    What worked for me was to do a "Save as" of the actual Author file to a totally new location (I used the Desktop), and then submit that file - which seemed to work in terms of the changes sticking. I even used the same file name.
    I'm not sure if some similar action might help you (maybe change the file name slightly?) or if you've already tried something like this.
    Still doesn't change the fact that this is a pretty irritating bug.

  • I have copied my iTunes library onto a new computer, but when I play back the songs there seems to be random "miss" or "drop out".  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    I have copied my iTunes library onto a new computer, but when I play back the songs using the new computer, there seems to be random "miss" or "drop out" during play back, similar to a small scratch on a vinyl record.  Although when I play the same song over again, the "miss" occurs in a different location during the song.  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    You don't say which version of iTunes you are using, but the symptoms you describe have been encountered by some users with the 64-bit version of iTunes 12.1.
    There is an alternative version for 64-bit editions of Windows here:
    iTunes 12.1 for Windows (64-bit — for older video cards)
    that seems to address the most of the playback issues that some users have been reporting with the full 64-bit version of 12.1.0.77 - including problems with Bluetooth speakers where either sound is degraded or completely absent.  The alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer.  The "for older video cards" label appears to be something of a misnomer as some people have reported that this corrects problems found on current / high-spec systems.
    Some users have reported that after installing this alternative version it is necessary to adjust the "Play audio using" selection (normally to "Direct Sound" rather than "Windows Audio Session", though this may vary based on your audio hardware/drivers) in Edit > Preferences > Playback to restore glitch-free audio (one part of the reported symptoms is that the "Direct Sound" choice isn't available, usually in Windows 8).  It may also be necessary to ensure that your Bluetooth speakers are active and selected as the default audio device before you run iTunes.
    If this doesn't address the issue, you may want to think about reverting to iTunes 12.0 - see Turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for steps needed to completely remove all installed iTunes components, and for links to the 12.0 installers.

  • Replaced my computer. Now cannot authorize the new one.

    I use Adobe Editions in downloading books from the library to read on my Nook reader. I recently replaced my original desk top computer with a new one. Now I can still download books to Digital Editions on my new computer but cannot transfer them to my Nook. I keep getting a notice that I need to authorize my Nook. But when I try, I get a message saying :You can only authorize this computer with an ID that hasn't been previously used to authorize any other computer or mobile devices. Please try again."  Since my Adobe ID is my email address, Do I have to set up a seperate Email address just to create a second Adobe ID?
    Seems rather redundant. Is there a conflict between my original PC and the new one? Help! Getting kinda frustrated.

    You certainly only want one AdobeID for all your devices if at all possible.
    It may be that the Nook has kept some memory of an older registration id.
    You should be able to undo that, then reregister.  To undo that, try (in order)
    ctrl-shift-E to ADE with the Nook plugged in should work.
    If that fails, try to delete 'Digital Editions' and hidden '.adobe-digital-editions' directories from the Nook.
    If that fails, try a factory reset of the Nook.
    That will clear all your things from the Nook, so you may NOT want to risk that one.

  • HT5621 I Have followed all the steps and still cant remove iCloud to my existing account and add to the new one, the old email account was changed a year ago and cant get that email plus the password don't work please HELP!!

    I Have followed all the steps and still cant remove iCloud to my existing account and add to the new one, the old email account was changed a year ago and cant get that email plus the password don't work please HELP!

    Welcome to the Apple community.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone".
    You should then change your Apple ID back to its current state, verify it once again, delete the iCloud account from your device and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • How can I create a new behance account and migrate the content of the old behance account into the new one?

    I can't change the url of my old behance account so I need to start afresh with a new behance account... how can i migrate all content from the old url into the new one? thanks

    If you have a login questions - please contact Behance support directly. Behance is transitioning all logins to Adobe IDs this Spring 2014. If you signed up for Behance post April 10, 2014, your Behance login matches your Adobe ID exactly. If you signed up before this and are having trouble logging in, visit this section for more help, or contact Behance support. Please do not comment on this forum with login questions, as we're able to provide much faster, one-on-one support elsewhere.

Maybe you are looking for