Hi Trevor,
OK, found the problem.  I had a set dgProps["sort by column"] statement
after setting the dgNUmberOfRecords.  Moved that to a place where
dgNumberOfRecords is zero and only one cycle of GetDataForLine happens now.

Thanks for the help in tracking it down.  There are a lot of nuances to
using dgNumberOfRecords!

Pete

On Tue, Mar 13, 2012 at 10:49 AM, Trevor DeVore
<li...@mangomultimedia.com>wrote:

> If you have the dgNumberOfRecords set to a positive number then that makes
> sense as the data grid has to redraw.
>
> If the dgNumberOfRecords is set to 0 (and messages aren't locked when
> setting it) then I'm not sure why that is. Setting the dgNumberOfRecords to
> 0 should do the trick as it empties out the internal sDataArray array.
> GetDataForLine is only sent if an entry in the sDataArray array is NULL.
>



-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to