# GetTotalRowCount

Use the GetTotalRowCount method to get the total number of rows of the active sheet. Learn its syntax and parameters in documentation.

## Content

Gets the total number of rows of the active sheet.

## Syntax

[JavaScript]

```javascript
var ret = FpSpread1.GetTotalRowCount();
```

## Parameters

None

## Return Type

Integer

## Remarks

This method returns the total number of rows for the active sheet. If the **AllowPage** property is true, this method may return more rows than the **GetRowCount** method.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
   function getHValue() {
       var ss = document.getElementById("FpSpread1");
       var totalRow = ss.GetTotalRowCount();
   }
</script>
```

## See Also

[GetRowCount](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetRowCount)
[SetValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-SetValue)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)