LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table Edit Position Property issue

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?

0 Kudos
Message 1 of 3
(3,231 Views)

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:

 

changed cell.jpg

 

 

Let me know if this helps you.

 

best regards

0 Kudos
Message 2 of 3
(3,192 Views)

Hi,

Thanks for answer. I have found another solution. Selection Start shows only if I select the cells with mouse.

My solution is:

 

0 Kudos
Message 3 of 3
(3,169 Views)