Spread Windows Forms 12.0 Product Documentation
ActiveRowIndex Property (SheetView)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ActiveRowIndex Property
Gets or sets the row index of the active cell on the sheet.
Public Property ActiveRowIndex As Integer
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
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.
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()
See Also


SheetView Class
SheetView Members

User-Task Documentation

Working with the Active Cell