Spread Windows Forms 6.0 Product Documentation
AllowRowMoveMultiple Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : AllowRowMoveMultiple Property


Glossary Item Box

Gets or sets whether to allow the user to move multiple rows.

Syntax

Visual Basic (Declaration) 
Public Property AllowRowMoveMultiple As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As Boolean
 
instance.AllowRowMoveMultiple = value
 
value = instance.AllowRowMoveMultiple
C# 
public bool AllowRowMoveMultiple {get; set;}

Remarks

Click the column or row header to select it. Select multiple columns or rows by holding down the mouse button and moving over other headers.  After the selection is made, you can click and drag a selected header to start the move.

Example

This example allows the user to move multiple rows.
C#Copy Code
fpSpread1.AllowRowMove = true;
fpSpread1.AllowRowMoveMultiple = true;

 private void fpSpread1_RowDragMove(object sender, FarPoint.Win.Spread.DragMoveEventArgs e)
        {
            listBox1.Items.Add(e.Count.ToString());
        }

        private void fpSpread1_RowDragMoveCompleted(object sender, FarPoint.Win.Spread.DragMoveCompletedEventArgs e)
        {
            listBox1.Items.Add(e.Count.ToString());
        }
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        FpSpread1.AllowRowMove = True
        FpSpread1.AllowRowMoveMultiple = True
End Sub

Private Sub FpSpread1_RowDragMove(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveEventArgs) Handles FpSpread1.RowDragMove
        ListBox1.Items.Add(e.Count.ToString())
End Sub

Private Sub FpSpread1_RowDragMoveCompleted(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveCompletedEventArgs) Handles FpSpread1.RowDragMoveCompleted
        ListBox1.Items.Add(e.Count.ToString())
End Sub

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.