DataGrid Form Row Change
Posted: Fri Mar 25, 2016 11:50 pm
Hello, I have a datagrid Form and trying to update row in a repeat loop, I confirm the array is being changed, I am just having trouble making it update on screen when repeat loop is done:
Thanks for any help
Edit: fixed typo
Code: Select all
on mouseUp
put the dgData of group "formGrid" into theDataA
put the dgIndexes of group "formGrid" into theIndexes
repeat for each item theIndex in theIndexes
put theDataA[theIndex]["Status"] into tStatus--this value is already in record
if tStatus= "true" then
put "pic.png" into theDataA[theIndex]["pic"]
else
send "DeleteIndex theIndex" to grp "formGrid"
end if
end repeat
-- I would like to repopulate datagrid with only the records that are left
send "RefreshList" to grp "formGrid" --update changes but I suspect this does not put records left at top
end mouseUp
Edit: fixed typo