virtual BOOL OnSelDragRowsMove(ROWCOL nFirstRow, ROWCOL nLastRow, ROWCOL nDestRow);?
nFirstRow
Specifies the first selected row.
nLastRow
Specifies the last selected row.
nDestRow
Specifies the destination row.
TRUE if rows can be moved; FALSE if not.
Overridable method which is called from OnSelDragMove when the user has moved the mouse to a different row.
When you return FALSE, the grid will display a “no drop”-cursor (see example).
This example shows you how you can inhibit dragging non-frozen row to frozen rows:
// Inhibit dragging rows to nonfrozen rows.
// The grid will display a "no drop"-cursor if OnSelDragRowsMove returns FALSE.
BOOL CGridSample3View::OnSelDragRowsMove(ROWCOL, ROWCOL, ROWCOL nDestRow)
{
return nDestRow > GetFrozenRows( );
}
CGXGridCore::OnSelDragMove CGXGridCore::OnSelDragRowsStart
Class Overview | Class Members