CGXGridCore::UpdateMoveRows

virtual void UpdateMoveRows(ROWCOL nFromRow, ROWCOL nToRow, ROWCOL nDestRow, UINT flags, BOOL bCreateHint = FALSE);?

nFromRow

Specifies the first row.

nToRow

Specifies the last row.

nDestRow

Specifies the destination row.

flags

  • Specifies the update technique:

  • GX_UPDATENOW specifies to scroll the window contents and call UpdateWindow after invalidating the window.

  • GX_SMART specifies to scroll the window contents without calling UpdateWindow after the last invalidation.

GX_INVALIDATE simply invalidates the window area below nFromRow or nDestRow.

bCreateHint

Specifies if a hint should be created.

Remarks

Overridable method which updates the window after moving rows.

The method creates the following hint:

   CGXGridHint hint(gxHintUpdateMoveRows, m_nViewID);
   hint.nRow1 = nFromRow;
   hint.nRow2 = nToRow;
   hint.nRow3 = nDestRow;
   hint.flags = flags;

You can override this method if you need to change the hint.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementMoveRowsCols method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method performs no action. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

 CGXGridCore::MoveRows  CGXGridHint

CGXGridCore

 Class Overview |  Class Members