Spread Windows Forms 9.0 Product Documentation
ActiveRowIndex Property (SheetView)
Example 


Gets or sets the row index of the active cell on the sheet.
Syntax
'Declaration
 
Public Property ActiveRowIndex As Integer
'Usage
 
Dim instance As SheetView
Dim value As Integer
 
instance.ActiveRowIndex = value
 
value = instance.ActiveRowIndex
public int ActiveRowIndex {get; set;}

Property Value

Integer row index of the active row
Remarks
This property is available at run time only. This property returns -1 or null if there is no active row. Columns or rows that do not exist can not be active.
Example
This example illustrates the use of this member by returning the index of the active column and active row.
fpSpread1.ActiveSheet.SetActiveCell(2, 2);
label1.Text = "The active column is " + fpSpread1.ActiveSheet.ActiveColumnIndex.ToString() + " and the active row is " + fpSpread1.ActiveSheet.ActiveRowIndex.ToString();
FpSpread1.ActiveSheet.SetActiveCell(2, 2)
Label1.Text = "The active column is " & FpSpread1.ActiveSheet.ActiveColumnIndex.ToString() & " and the active row is " & FpSpread1.ActiveSheet.ActiveRowIndex.ToString()
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Working with the Active Cell

 

 


Copyright © GrapeCity, inc. All rights reserved.