GRID Specifies the grid class it will be bound to.
The CGXDBEGrid holds a reference to the CGXDBEngine instance and CGXBrowserLayoutManager and delegates all of the initialization and user-action callback handling to the CGXBrowserLayoutManager.
Initialize a CGXDBEGrid derived class with an implementation of CGXDBEngine as follows:
void CGXDBEToolsGridView::OnInitialUpdate()
{
...
SetEngine(m_pDBEngine); // m_pDBEngine is an instance
// of CGXDBEngine, take a look
// at CGXDBToolsEngine for an
// example.
// Implementation(DBTools) specific initialization function.
// Has the same signature as GXInitDBEGridFromEngine.
// Data source specific initialization function.
// Always call this after SetEngine.
m_pLayoutManager->m_pfInitFunction =
GXInitDBToolsGridFromDBToolsEngine;
CMyDBEGridView::OnInitialUpdate();
...
}
GXInitDBToolsGridFromDBToolsEngine is a function with the same signature as GXInitDBEGridFromEngine. The CGXDBEGrid defines the necessary API for the browser-like behavior, but the implementation delegates to CGXBrowserLayoutManager. Override the appropriate virtuals in CGXBrowserLayoutManager or CGXDBEngine whenever you need to change the behavior of the grid.
CGXDBEngine CGXDBToolsEngine CGXBrowserLayoutManager