Spread for ASP.NET 7.0 Product Documentation
Allowing the User to Move Columns
Support Options
Spread for ASP.NET 7.0 Product Documentation > Developer's Guide > Customizing User Interaction > Customizing Interaction with Rows and Columns > Allowing the User to Move Columns

Glossary Item Box

You can allow the user to drag and move columns. Set the AllowColumnMove property in the SheetView class to allow the user to move columns.

For the user to move columns, they simply left click on the header of the column to move and drag the header back or forth over the header area and release the mouse over the header of the desired destination.

Moving columns is not supported in child sheets in hierarchical displays.

Using the Properties Window

  1. At design time, in the Properties window, select the FpSpread component.
  2. Select the Sheets property.
  3. Click the button to display the SheetView Collection Editor.
  4. In the Behavior section, set the AllowColumnMove property.
  5. Click OK to close the SheetView Collection Editor.

Using a Shortcut

Set the AllowColumnMove property.

Example

This example code sets the AllowColumnMove property.

C# Copy Code
FpSpread1.ActiveSheetView.AllowColumnMove = true;
VB Copy Code
FpSpread1.ActiveSheetView.AllowColumnMove = True
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.