CGXODBCGrid::CGXODBCGrid
CGXODBCGrid(CWnd* pGridWnd = NULL, CDocument* pGridDoc = NULL, BOOL bIsViewContext = FALSE);
pGridWnd
A pointer to the parent CWnd object for the CGXODBCGrid object.
pGridDoc
A pointer to the document, if any. Otherwise NULL.
bIsViewContextYou
hould pass TRUE for this parameter if the grid is used in a CView
Remarks
Constructs a CGXODBCGrid object.
You will only need to call this constructor if you want to attach a CGXODBCGrid object to a CGXGridHandleView or CGXGridHandleWnd.
Example
This example shows you how you can attach a CGXODBCGrid (derived from CGXGridCore) to CGXGridHandleView:
void CMyGridView::OnInitialUpdate()
{
AttachGrid( new CGXODBCGrid(this, GetDocument(), TRUE) );
CGXGridHandleView::OnInitialUpdate();
...
}
See Also
CGXGridHandleView CGXGridHandleWnd