Spread Windows Forms 6.0 Product Documentation
SetActiveCell(Int32,Int32,Boolean) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SetActiveCell Method : SetActiveCell(Int32,Int32,Boolean) Method


row
Row index of cell
column
Column index of cell
clearSelection
Whether to clear selections

Glossary Item Box

Sets the active cell on this sheet.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SetActiveCell( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal clearSelection As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim clearSelection As Boolean
 
instance.SetActiveCell(row, column, clearSelection)
C# 
public void SetActiveCell( 
   int row,
   int column,
   bool clearSelection
)

Parameters

row
Row index of cell
column
Column index of cell
clearSelection
Whether to clear selections

Example

This example sets the active cell and does not clear selections.
C#Copy Code
fpSpread1.ActiveSheet.SetActiveCell(2, 2, false);
Visual BasicCopy Code
FpSpread1.ActiveSheet.SetActiveCell(2, 2, False)

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.