CGXGridCore::OnSelDragRowsStart
virtual BOOL OnSelDragRowsStart(ROWCOL nFirstRow, ROWCOL nLastRow);?
nFirstRow
Specifies the first selected row.
nLastRow
Specifies the last selected row.
Return Value
TRUE when dragging the specified rows is possible, FALSE if dragging should be aborted.
Remarks
Overridable method which is called from OnSelDragDrop when the user has clicked the mouse on a selected row-header.
You can override this method if you want to avoid dragging specific rows (see example). See CGXGridParam::EnableMoveRows and CGXGridParam::EnableMoveCols if you want to avoid moving rows or columns globally.
Example
This example shows how you can inhibit dragging frozen rows:
// Inhibit dragging frozen rows.
BOOL CGridSample3View::OnSelDragRowsStart(ROWCOL nFirstRow, ROWCOL)
{
return nFirstRow > GetFrozenRows( );
}
See Also
CGXGridCore::OnSelDragStart CGXGridCore::OnSelDragRowsMove