Thanks for the super-prompt reply. The context is that I am l am looking at using slickgrid for data entry - as an extension for CiviCRM.
In the particular context the person is generally tabbing around the cells & entering stuff - however, when they are entering a cheque they need to find or add a contact record. I have created a pop up form where they can select or create the contact. But then once they click save they then should move across the row to the next field to enter. So, from a work-flow this is a problem.
However, I think I have another problem & the answer to that may make this one obsolete. I have the contact being created by an ajax call when they click save & it is not until that ajax call returns that the value for the cell (the contact id) is known. So, I guess my understanding of the flow there is not quite adequate yet. As the contact id is generally the first row in the table it co-incides with adding a new row. But, I'm not clear on the order of things & what I can rely on. I have switched to using a dataview rather than a direct table (I was hoping to be able to delete rows too - but it seems I can't? - maybe I could just set them to store a deleted value & somehow hide them.).
FWIW here is what I have been working on - although there has been a fairly steep learning curve here & I will need to re-visit a lot of the code.
https://github.com/eileenmcnaughton/nz.co.fuzion.slickgrid