Spread for ASP.NET 11 Product Documentation
TopRow Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : TopRow Property
Gets or sets the row to display as the top row in the sheet.
Syntax
'Declaration
 
Public Property TopRow As Integer
'Usage
 
Dim instance As SheetView
Dim value As Integer
 
instance.TopRow = value
 
value = instance.TopRow
public int TopRow {get; set;}

Property Value

Integer row index
Remarks

This property is available at run time only.

Set this property to a row index to position that row next to the top edge of the sheet. The row index is zero-based.

When the top displayed row changes, the TopRowChanged event occurs.

Positioning a row using this property does not affect the position of the active cell.

The IgnoreHiddenRowsWhenPaging property should be false when using the TopRow property.

Rows above that top row are not rendered in the client.

If the AllowPage property is False, the TopRow property takes effect. If AllowPage is True; then TopRow only takes affect the first time the page is loaded.

Example
This example sets the top row and does not render the first four rows.
FpSpread1.ActiveSheetView.RowCount = 20;
FpSpread1.ActiveSheetView.ColumnCount = 7;
FpSpread1.ActiveSheetView.AllowPage = false;
FpSpread1.ActiveSheetView.TopRow = 4;
FpSpread1.ActiveSheetView.IgnoreHiddenRowsWhenPaging = false;
FpSpread1.ActiveSheetView.AllowPage = False
FpSpread1.ActiveSheetView.ColumnCount = 7
FpSpread1.ActiveSheetView.RowCount = 20
FpSpread1.ActiveSheetView.IgnoreHiddenRowsWhenPaging = False
FpSpread1.ActiveSheetView.TopRow = 4
See Also

Reference

SheetView Class
SheetView Members
TopRowChanged Event
ScrollTo Method