Spread Windows Forms 7.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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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