Skip to content

OnCreateGridControl - cCJGrid

Event called when the grid is being paged (created)

Type: Event

Syntax

Procedure OnCreateGridControl

Description

OnCreateGridControl is called as part of the grid activation process. When a grid is activated, the COM object is created and the OnCreateGridControl event is called. This is called as part of the CreateGridControl method. It is called after the cCJGrid COM object is created and initialized and before any of the child COM columns objects are created.

This event can be used to set COM properties that are not exposed directly in the property panel.

Sample

Procedure OnCreateGridControl
    Handle hoReportToolTipInfo hoPaintManager

    Forward Send OnCreateGridControl        

    Get phoReportToolTipInfo to hoReportToolTipInfo
    Get phoReportPaintManager to hoPaintManager

    Set ShowOfficeBorder of hoReportToolTipInfo to True
    Set ComShowLockIcon of hoPaintManager to True
End_Procedure

See Also

OnRelease