# GetRowKeyFromRow

Use the GetRowKeyFromRow method to get the server-side row index for the specified client-side row index. Learn its syntax and parameters in documentation.

## Content

Gets the server-side row index for the specified client-side row index.

## Syntax

[JavaScript]

```javascript
var ret = FpSpread1.GetRowKeyFromRow(Row);
```

## Parameters

***Row***
Integer, client-side row index

## Return Type

Integer, index of the server-side row key (Spread control's row index)

## Remarks

This method returns the index of the Spread key based on the row. The key is based on the entire row count (0 to rowcount -1). There may be multiple pages or tables and each page might have a subset of the total row count. This method checks the current table or page and returns the FPKey for the specified row number.

## 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.GetRowKeyFromRow(0);
   }
</script>
```

## See Also

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