in my datagrid column go up and down using the small arrows (aka scroll bar )
///////// INCREASE AND DECREASE BOXES QUANITYS ////////
on scrollbarLineInc
put the dgHilitedLines of group "DataGrid" into myline
put the dgDataOfLine[myLine] of group "DataGrid" into myArray
put myArray["BOXES"] into myAmount
subtract 1 from myAmount -- SUBTRACT
dispatch "SetDataOfIndex" to group "DataGrid" with the dgHilitedIndex of group "DataGrid", "BOXES", myAmount
end scrollbarLineInc
on scrollbarLineDec
put the dgHilitedLines of group "DataGrid" into myline
put the dgDataOfLine[myLine] of group "DataGrid" into myArray
put myArray["BOXES"] into myAmount
add 1 to myAmount -- ADD
dispatch "SetDataOfIndex" to group "DataGrid" with the dgHilitedIndex of group "DataGrid", "BOXES", myAmount
end scrollbarLineDec
/////////////////////////////////////////////////////////////
i can put a message box in the script and see that myAmount is going up and down
however the datagrid remains empty and never gets changed .
my datagrid is setup like this
THANKSSKU / NAME / BOXES / LOOSE