# GetParentRowIndex

Use the GetParentRowIndex method to get the row index of the parent Spread object of the displayed Spread object.

## Content

Gets the row index of the parent Spread object of the displayed Spread object.

## Syntax

[JavaScript]

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

## Parameters

None

## Return Type

Integer, index of row of the parent Spread object

## Remarks

This method returns the index of the row for the parent of the child Spread object (HTML element) displayed on the client. This method is for a hierarchical Spread.

## 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 getPRowIx() {
       var prowix = FpSpread1.GetParentRowIndex();
       alert("Index of parent row is " + prowix);
</script>
```

## See Also

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