MoveColumns
Move columns in a worksheet or matrixsheet.
BOOL MoveColumns( int nStartLocation, int nNumCols, int nOperation, BOOL bUndo = FALSE, int nIndex = -1 )
TRUE if success, otherwise FALSE
EX1
// Move three columns - starting with column 5 - to the first column // Example requires first worksheet in project with at least 7 columns int Datasheet_MoveColumns_Ex1() { WorksheetPage wp = Project.WorksheetPages(0); if(!wp) return -1; Worksheet wks(wp.GetName()); if(wks) if( wks.MoveColumns(4, 3, MOVE_COL_TO_FIRST) ) printf("Successfully move to destination column!"); else printf("Fail to move to specified column!"); return 0; }
Datasheet::SwapColumns
origin.h