CGXData Class Members
Construction
CGXData | Constructs a data object. |
Control Factory
ImplementCopyMoveCells | Makes the concrete implementation of StoreCopyCells and StoreMoveCells available to your application. |
ImplementSortMoveData | Makes the concrete implementation of StoreMoveDataRows and StoreMoveDataCols available to your application. |
Operations
operator= | Copies a data object. |
Serialize | Serializes the data object. |
DeleteContents | Deletes all cells. |
InitParam | Called from CGXGridCore::OnGridInitialUpdate to initialize some default parameter settings. |
Cells
GetColCount | Returns the number of columns. |
GetRowCount | Returns the number of rows. |
StoreColCount | Specifies the number of columns. |
StoreRowCount | Specifies the number of rows. |
GetStyleRowCol | Looks up a style in the cells-array. |
StoreStyleRowCol | Stores a style into the cells-array. |
GetValueRowCol | Looks up a value in the cells-array. |
StoreValueRowCol | Stores a value in the cells-array. |
StoreInsertCols | Inserts columns in the cells-array. |
StoreInsertRows | Inserts rows in the cells-array. |
StoreMoveCols | Moves columns in the cells-array. |
StoreMoveRows | Moves rows in the cells-array. |
StoreRemoveCols | Removes columns in the cells-array. |
StoreRemoveRows | Removesrows in the cells-array. |
StoreMoveDataCols | Rearranges the columns in the grid. The new order of columns is specified through the awColIndex array. |
StoreMoveDataRows | Rearranges the rows in the grid. The new order of rows is specified through the awRowIndex array. |
Clipboard Cut, Copy/Paste
StoreCopyCells | Copies cells from source to dest. Cell references in formula expressions (unless marked as absolute range) will be adjusted. |
StoreMoveCells | Moves cells from source to dest. Cell references in formula expressions that depend on cells in the moved range will be adjusted. |
Virtual Methods
The following methods have no effect if you are using CGXData. They have been added to CGXData so that CGXGridCore can communicate with the formula engine. CGXFormulaSheet (only provided with the professional version of Objective Grid) overrides these methods and provides the necessary functionality
GetUpdateFlag | Checks if the given cell needs to be redrawn (e.g. if formula result has been changed). CGXGridCore::RefreshViews checks GetUpdateFlag for all visible and refreshes them if GetUpdateFlag returns TRUE. |
SetUpdateFlag | Forces the given cell to be redrawn with the next RefreshViews() call. |
AddRecalcRange | Marks a give range of cells so that formula cells that depend on the marked cells will later be reevaluated. The formula engine maintains a recalc range list where all these ranges are added. |
Recalc | Recalculates all cells in the worksheet that depend on cells in the recalc range list. |
ResetError | Resets the error state of the formula engine. |
GetError | Returns the error state of the formula engine. Objective Grid will call this method and if necessary display a message box with error information based on the return value of this GetError method. |
SetRangeName | Adds a named range or replaces an existing named range with the new range settings. |
GetRangeName | Returns the associated range for a given range name. |
DeleteRangeName | Deletes a named range from the range name list. |