Datagrid: speed question related to how it is working under the hood?

David Bovill david.bovill at
Mon Sep 21 12:06:39 EDT 2009

Thanks - great to know. Will use the API calls with abandon :)

2009/9/21 Trevor DeVore <lists at>

> On Sep 21, 2009, at 8:37 AM, David Bovill wrote:
>  ...
>> *The questions:*
>> If I uses "set the dgDataOfIndex" to update the display of an individual
>> datagrid form record, does the underlying library only update the display
>> associated with this one record, or does the library redraw all the
>> currently displayed records?
>> Would I be any better off speed wise directly setting the images /
>> metadata
>> of records using over using built in datagrid api calls?
> The data grid will only redraw the row you altered. If the row isn't
> visible on screen then an offscreen control is created in order to determine
> the new height of the row but that is it.
> Keep in mind that if you don't use the data grid apis the height of the row
> can't be updated and your scrolling will be off.

More information about the Use-livecode mailing list