<< Return to Main Index

< Return to Class Index

CGXGridCore::SetFrozenCols

virtual BOOL SetFrozenCols(ROWCOL nFrozenCols, ROWCOL nHeaderCols, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nFrozenCols

Specifies the number of columns to freeze.

nHeaderCols

Specifies the number of columns to be used as row headers.

flags

Specifies the update technique. See UpdateFrozenCols for more information.

ctCmd

Specifies if the executed command is undone (gxUndo), redone (gxRedo), executed the first time (gxDo) or rolled back (gxRollback).

Return Value

TRUE if the command has been successfully executed; it is FALSE if the command failed.

Remarks

Overridable command for specifying the number of frozen columns and columns to be used as row headers.

The number of frozen columns and columns to be used as row headers is stored with StoreFrozenCols. The display is updated with UpdateFrozenCols.

Frozen columns are columns which will never scroll out of the window. They are fixed at the left side of the grid.

Row headers are columns which will be used to display titles for rows. They typically have a 3d-look.

The command generates a CGXSetFrozenColsCmd-object with undo-information.

See Also

CGXGridCore::GetFrozenCols CGXGridCore::StoreFrozenCols CGXGridCore::UpdateFrozenCols CGXGridCore::LockUpdate

CGXGridCore

Class Overview | Class Members