Spread Windows Forms 6.0 Product Documentation
MoveColumn Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : MoveColumn Method


Glossary Item Box

Moves the specified column from its current index to the specified index, and shifts each column in between and the destination column one column in the direction of the specified column.

Overload List

OverloadDescription
MoveColumn(Int32,Int32,Boolean)Moves the specified column from its current index to the specified index, and shifts each column in between and the destination column one column in the direction of the specified column.  
MoveColumn(Int32,Int32,Int32,Boolean)Moves the specified column from its current index to the specified index, and shifts each column in between and the destination column one column in the direction of the specified column.  

Remarks

The moveContent parameter determines whether the mapping of indexes of the sheet and the underlying models is still in sync. For more information, refer to the DragMoveEventArgs.MoveContent property.

If the moveContent parameter is false, then cell spans are not displayed because the mapping of indexes has changed If the moveContent parameter is true, then cell spans are moved along with the columns because the index mapping has not changed.

Example

This example moves the column from its current index to the specified index.
C#Copy Code
fpSpread1.ActiveSheet.MoveColumn(0, 2, true);
Visual BasicCopy Code
FpSpread1.ActiveSheet.MoveColumn(0, 2, True)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.