Class: cDbCJGridDataSource
Class Hierarchy:
cObject

cCJGridDataSource


cCJGridCachedDataSource



cDbCJGridDataSourceClass Definition
Properties
Boolean
pbNotifyingExternalDD
Functions and Procedures
Boolean
CanAddRow()
Boolean
CanDeleteRow()
Boolean
CanSaveRow()

Construct_Object()
tDataSourceRow
CreateClearedDataSourceRow()
augmented to clear the DD and get DD defaults as needed
String
DataForCell(Integer iRow Integer iColumn)
Boolean
DeleteSelectedRow()
Boolean
IsSelectedRowChanged()
Boolean
IsSelectedRowNew()

OnNotifyExternalDDofSelect(tDataSourceRow DataSourceRow)

ResetSelectedRow()
Boolean
SaveSelectedRow()

SelectRow(Integer iRow Boolean bUpdateExternalData)
this can get called with the Row out of range for the cache
because rowcount can exceed the cache size
Boolean
ShouldSaveSelectedRow()
only can be saved if there is a change

SynchronizeDataForSelectedRow(Boolean bPushData Integer iFlags)

UpdateDataForSelectedRow(Integer iColumn String sValue Boolean bUpdateExternalData)

UpdateDataSourceFromExternalSource(Integer iFlags)
move data from the DD's global file buffer to the datasource
iFlags contains the refresh mode. Done and Cleared array should be set.
called as part of a DD refresh
Boolean
UpdateDataSourceRowFromExternalSource(Integer iFlags tDataSourceRow ByRef DataSourceRow)
update this row from the DDs, the file buffers and the done arrays. Called during a DD operation
returns new datasourcerow (byref) and True if there was a change the change test can be used to
optimize updating of the datasource array

UpdateExternalSourceFromDataSource(Integer iFlags)
move data from datasource to the DD's global file buffer.
Handle
ValidateSelectedRow()