Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid row no longer selected after editing a cell value

    using SmartClient Version: v8.3p_2013-02-27/EVAL

    Once again, I'm unable to solve what is likely a simple problem...

    Steps to produce my problem:
    1. double-click a cell in ListGrid to select the row and begin editing that cell value.
    2. change the cell value, then press the enter key
    3. observe that the new cell value saved as expected to the database and also that the row is no longer selected.

    I cannot figure out how to force it to keep that row selected after I press the enter key. I've tried a hundred different things with code in the various events that fire before the edit (to get the current row) and events after the edit (to attempt to select the same row I just edited) and nothing has worked.

    Can someone either tell me which ListGrid property I've overlooked, or where to look for a specific code example, or give me the code to make this happen ??

    Thanks,
    Jerry
    Last edited by jerry426; 12 Apr 2013, 13:30.

    #2
    EditComplete -> selectRecord() achieves this, but consider whether you really want to do this, since typically one might trigger a save by pressing down-arrow to move to the next record, which will then be (correctly) the selected record.

    Comment

    Working...
    X