Scrolling datagrid problem
Posted: Thu Jul 23, 2015 5:25 pm
I have a datagrid (form) that has a place for an image but I don't load the image until they click on the row. This works fine, but then when I scroll up or down, the same image is shown every 5 rows, basically every time a new screen of rows is shown. What am I doing wrong? Here's the code from the on mouseUP function in the behavior script.
I left out all of the code that I don't think matters in this issue.
Code: Select all
on mouseUp pMouseBtnNum
if pMouseBtnNum is 1 then
set the filename of image "itemPic" of me to "https://gunarama.com/images/th/250/" & tCurrentItemArray[the dgLine of me]["web_pic"] & ".jpg"
end if
end mouseUp