Spread for ASP.NET 9.0 Product Documentation
MoveColumn(Int32,Int32,Int32) Method
Example 


Column index at which to start the move (first column)
Number of columns to move
Destination before which to copy the range of columns
Moves the column or columns to a specified location.
Syntax
'Declaration
 
Public Sub MoveColumn( _
   ByVal column As Integer, _
   ByVal count As Integer, _
   ByVal toColumn As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim count As Integer
Dim toColumn As Integer
 
instance.MoveColumn(column, count, toColumn)
public void MoveColumn( 
   int column,
   int count,
   int toColumn
)

Parameters

column
Column index at which to start the move (first column)
count
Number of columns to move
toColumn
Destination before which to copy the range of columns
Example
This example uses the MoveColumn method.
protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;
            FpSpread1.Sheets[0].Cells[0, 0].Text = "testing";           
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            FpSpread1.Sheets[0].MoveColumn(0, 1, 2);
        }
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (IsPostBack) Then
            Return
        End If
        FpSpread1.Sheets(0).Cells(0, 0).Text = "testing"       
    End Sub

    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        FpSpread1.Sheets(0).MoveColumn(0, 1, 2)
    End Sub
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.