Spread for ASP.NET 9.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetParentRowIndex |
Gets the row index of the parent Spread object of the displayed Spread object.
[JavaScript]
var ret = FpSpread1.GetParentRowIndex();
None
Integer, index of row of the parent Spread object
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.
This is a sample that contains the method. On the client side, the script that contains the method would look like this:
JavaScript |
Copy Code
|
---|---|
<script type="text/javascript"> function getPRowIx() { var prowix = FpSpread1.GetParentRowIndex(); alert("Index of parent row is " + prowix); </script> |