Skip to content

AllDataIsLoaded - cCJGridDataSource

Returns True if all data is loaded in the datasource

Type: Function
Return Data Type: Boolean

Syntax

Function AllDataIsLoaded Returns Boolean

Call Example

Get AllDataIsLoaded to BooleanVariable

Description

AllDataIsLoaded can be called to determine if all of your data is loaded in your datasource cache.

cCJGrid / cCJGridDataSource

This returns True if any rows are loaded in the datasource. There is little need to use this message in this class.

cDbCJGrid / cDbCJGridDataSource

This returns True if all data is currently loaded in the datasource cache. Note that this does not indicate that your data is current, as there may be changes to your data that are not represented in the datasource. This can be the case if DataIsStatic is False. If DataIsStatic is True and AllDataIsLoaded is True, you can assume that you have a static copy of all of your data in the datasource.

Get phoDataSource to hoDataSource
Get DataIsStatic of hoDataSource to bStatic
If bStatic Begin
    Get AllDataIsLoaded of hoDataSource to bLoaded
    If bLoaded Begin
        Send HeaderReorder iCol
    End
End

Return Value

True if all data is currently loaded in the datasource.