How can I derive a grid?

Two steps are necessary to derive a class from a CGXGridWnd:

Create a new class with ClassWizard.  Use "generic CWnd" as Class Type.

Next, using a text editor, change the derivation in your window class, in both the .h and .cpp files.  All references to CWnd should be replaced by CGXGridWnd

If you want to derive a class from CGXGridView use the following steps instead

Create a new class with ClassWizard.  Use "CView" as Class Type.

Next, using a text editor, change the derivation in your window class, in both the .h and .cpp files.  All references to CView should be replaced by CGXGridView

Change the generated OnDraw, OnBeginPrinting and OnEndPrinting method and call CGXGridView.