The first thing I tried to do was to get the two grids to scroll together so that scrolling one would automatically scroll the other. It is the horizontal scrolling that I want to work together. Having done something similar with table fields before I tried (to no avail) I tried scripts like the one below:
Code: Select all
on scrollbarDrag
put the hscroll of me into tScroll
set the hscroll of field "Sums" to tscroll
end scrollbarDrag
Code: Select all
on mouseUp
answer file "Select the .TXT file to load:"
put it into theFile
put true into firstLineHeaders
set the dgText[firstLineHeaders] of group "PortfolioGrid" to URL("file:" & theFile)
end mouseUp
Something seems to be going on but it makes no sense to me. Is it possibly related to the fact that the data I am trying to load into card 2 is exactly the same as the data I already have in card 1? I did discover among my attempts that the one of the heading fields had an extra space after it and consequently that column did not load but by fixing that, everything except headings loaded.
As you can see I have not gone very far into this and I will have way more to do.. I still want to control scrolling from one Grid and I want to get sums from the large grid to put into the Sums grid. I have been looking at the dataGrid tutorials as I go but am worried that these things are just too sensitive.
Any help you can give will be appreciated. Thanks,
Larry