Hmmm.
I made a quick dataGrid and filled by hand with seven lines and three columns.The DG had both H and V scrollbars right out of the box. Also made a field "fff". In the group script:
Code: Select all
on mouseUp
put the clickField into fld "fff" --gives the layer number
end mouseUp
Initially, clicking on any "cell" gave back something like "field 4", with the field number increasing down and over, not over and down. Enlarging the DG to eliminate the scrollbars gave empty if I clicked on a low empty "cell".
I had always referenced DG field names with, as an example:
Code: Select all
put the name of fld 4 into fld "fff"
which is "field Col 1 0004".
BUT, after simply reSizing, I am looking, right now, at the same DG where "field 1", that is "field Col 1 0001" is now at the bottom of Column 1. Field 7 is now in the upper left corner. In fact, all of the first row is now the bottom row, and all of row 7 is now the top row. They switched places. The row sequence has gone from "1,2,3...7" to "7,2,3...1".
I will make another DG and see if this happens again.
Not sure this answers your question. But something is going on with DG's. LC 9.6.1. Mac OS 10.15.7.
Craig