CGXGridCore::OnSelDragRowsMove

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.

Return Value

TRUE if rows can be moved; FALSE if not.

Remarks

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).

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( );
}

See Also

 CGXGridCore::OnSelDragMove  CGXGridCore::OnSelDragRowsStart

CGXGridCore

 Class Overview |  Class Members