04-08-2015 09:57 AM
Hi,
I have Table, which holds and displays 2D string array. I want to save edited positons in an array. I am using "edit positon" property, however this property shows next "ready-to-edit" position. I am subtracting 1 from row and setting active cell and and I am changing BG color for example.
More precisely:
The table holds "0,000" strings as data in all cells. I am clicking row 8, col 0 and changing value to 1,000 and then pressing "Return" key. but Edit Position property shows me the next cell row 9, col 0, where the cursor currently is. I can subtract 1 from row to find the "last-edited" positon. But it gets confuses if I enter some value in the last row. If I give "1,000" in the last row, for example row 15, col 0, cursor jumps to row 0, col 1 as expected. But Edit positon shows row 0, col 1 instead of row 15, col 0.
How can I get "real" edited/changed position?
04-09-2015 08:07 AM
Hi there,
i thing i understood your task pretty well.
Your right, "edit position" gives you the position where your are currently editing a cell. As soon as you hit "retrun" or "tab" the new "edit position" is one row respectively one column further.
I used a event structure and the selection start property to find the "real" edited/changed position, as follows:
Let me know if this helps you.
best regards
04-10-2015 05:20 AM
Hi,
Thanks for answer. I have found another solution. Selection Start shows only if I select the cells with mouse.
My solution is: