CGXGridParam::CGXGridParam

CGXGridParam();

Remarks

Constructs a parameter object.

A parameter object can be created in the OnInitialUpdate method of your grid class, as for example:

void CGridSampleView::OnInitialUpdate()
{
   SetParam(new CGXGridParam);
   CMyGridView::OnInitialUpdate(); // Creates all objects and links them to the grid
}

- or -

you can declare an object in your document class and simply pass a pointer to the grid in the OnInitialUpdate method, as for example:

class CSampleDoc : public CDocument
{
   ...
// Attributes
public:
   CGXGridParam m_param;
};
void CGridSampleView::OnInitialUpdate()
{
   SetParam(&GetDocument()->m_param);
   CMyGridView::OnInitialUpdate(); // Creates all objects and links them to the grid
   EnableHints();   // Need synchronizing views as several views share all data
}

Don’t forget to call EnableHints as the last statement in your OnInitialUpdate method if you want the user to be able to open several grid views for the same document data. EnableHints enables the updating mechanism in the grid.

See Also

 CGXGridCore::SetParam  CGXGridCore::OnGridInitialUpdate  CGXGridCore::EnableHints

CGXGridParam

 Class Overview |  Class Members