virtual BOOL CanMergeCell(ROWCOL nRow, ROWCOL nCol, const CGXStyle& style, int mtType);
nRow
Specifies the row id.
nCol
Specifies the column id.
style
Const reference to the style object with all style information for the cell.
mtType
mtHorz for horizontal cell merging
TRUE if merging the cell is allowed; FALSE otherwise.
Objective Grid calls this method to check if it is possible to merge a cell in the specified direction (vertical or horizontal).
CGXGridCore::CanMergeCell checks the CGXStyle::SetMergeCell attribute. If this attribute does allow cell merging, this method calls CGXControl::CanMergeCell. Depending on the cell type, CGXControl::CanMergeCell will allow merging cells.
By default all cell types support cell merging. Override CanMergeCell if you want to disable merging cells for certain cell types.
CGXGridCore::CanMergeCell CGXStyle::SetMergeCell
Class Overview | Class Members