virtual BOOL OnSelDragColsStart(ROWCOL nFirstCol, ROWCOL nLastCol);?
nFirstCol
Specifies the first selected column.
nLastCol
Specifies the last selected column.
TRUE when dragging the specified columns is possible, FALSE if dragging should be aborted.
Overridable method which is called from OnSelDragDrop when the user has clicked the mouse on a selected column-header.
You can override this method if you want to avoid dragging specific columns (see example). See CGXGridParam::EnableMoveRows and CGXGridParam::EnableMoveCols if you want to avoid moving rows or columns globally.
This example shows how you can inhibit dragging frozen columns:
// Inhibit dragging frozen columns.
BOOL CGridSample3View::OnSelDragColsStart(ROWCOL nFirstCol, ROWCOL)
{
return nFirstCol > GetFrozenCols( );
}
CGXGridCore::OnSelDragStart CGXGridCore::OnSelDragColsMove
Class Overview | Class Members