CGXControl::CanMergeCell
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
-
Specifies type of merging:
- mtVert for vertical cell merging
mtHorz for horizontal cell merging
Return Value
TRUE if merging the cell is allowed; FALSE otherwise.
Remarks
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.
See Also
CGXGridCore::CanMergeCell CGXStyle::SetMergeCell