Spread Windows Forms 12.0 Product Documentation
ActiveRow Property

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ActiveRow Property
Gets a Row object for the active row on the sheet.
Public ReadOnly Property ActiveRow As Row
Dim instance As SheetView
Dim value As Row
value = instance.ActiveRow
public Row ActiveRow {get;}

Property Value

Row object containing the active row.

This property is available at run time only. Columns or rows that do not exist can not be active. This property returns null if there is no active row.

This example illustrates the use of this member by returning the active column and the active row.
FarPoint.Win.Spread.Column c; 
FarPoint.Win.Spread.Row r;
fpSpread1.ActiveSheet.SetActiveCell(2, 2);
c = fpSpread1.ActiveSheet.ActiveColumn;
r = fpSpread1.ActiveSheet.ActiveRow;
label1.Text = "The active column is " + fpSpread1.ActiveSheet.ActiveColumn.ToString(c) + " and the active row is " + fpSpread1.ActiveSheet.ActiveRow.ToString(r);
Dim c As FarPoint.Win.Spread.Column
Dim r As FarPoint.Win.Spread.Row
FpSpread1.ActiveSheet.SetActiveCell(2, 2)
c = FpSpread1.ActiveSheet.ActiveColumn
r = FpSpread1.ActiveSheet.ActiveRow
Label1.Text = "The active column is " & FpSpread1.ActiveSheet.ActiveColumn.ToString(c) & " and the active row is " & FpSpread1.ActiveSheet.ActiveRow.ToString(r)
See Also


SheetView Class
SheetView Members

User-Task Documentation

Working with the Active Cell