CGXGridCore::StoreInsertCols

virtual BOOL StoreInsertCols(ROWCOL nCol, ROWCOL nCount, BOOL bProcessed = FALSE);?

nCol

Specifies the column id.

nCount

Specifies the number of columns to be inserted.

bProcessed

Specifies if inserting columns has been processed in an overridden method. You should set this value to TRUE when you call the base-class version.

Return Value

TRUE if data have been actualized; it is FALSE if inserting columns is not supported.

Remarks

Overridable method which inserts columns into the data-structure.

You should override this method if you do maintain the data in your own classes.

Please note that if you do override this method, you should call the base-class version of this method, setting bProcessed to TRUE.

The base-class version inserts columns into the internal column-widths-map, the selected ranges-list, the covered cells-list and the cell formattings-map.

Example

This example illustrates how to override this method.

BOOL CSampleView::StoreInsertCols(ROWCOL nCol, ROWCOL nCount, BOOL bProcessed)
{
   mydata.Insert(nCol, nCount);
   return CGXGridView::StoreInsertCols(nCol, nCount, TRUE);
}

CGXGridCore

 Class Overview |  Class Members