<< Return to Main Index

< Return to Class Index

class CGXGridParam: public CObject

The CGXGridParam class maintains attributes and objects being shared by several grid views of one document. It has pointers to the styles map with the grid-wide base styles, the properties object, the data object with the cell contents, the undo/redo list, selected ranges and covered cells.

By default, the parameter object - an instance of CGXGridParam - is created in the grid’s OnGridInitialUpdate method. Each grid must have a valid pointer to a parameter object, and it owns an associated flag which indicates whether the parameter object should be deleted when the grid is closed.

The parameter object can be maintained either by the document or by the grid itself.  That means you can declare an object in the document and simply pass a pointer to the object to the grid view or create an instance of CGXGridParam in your grid class.

#include <gxall.h>

See Also

CGXGridCore::OnGridInitialUpdate CGXGridCore::SetParam CGXGridCore::GetParam

CGXGridParam

Class Members