Spread.Sheets Documentation
getInsertRows Method
Gets the inserted row collection.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: Array
value = instance.getInsertRows();
function getInsertRows() : Array;

Return Value

The inserted rows.

The following values can be returned:

row.row number type Specifies row index.
row.item object type Specifies data item of the row.
Example
This example gets the inserted rows.
activeSheet.getRange(0, -1, 1, -1).backColor("Red");
activeSheet.setValue(0, 0, "value");
activeSheet.addRows(0, 1);

$("#button1").click(function () {

             var insertRows = activeSheet.getInsertRows();
            var len = insertRows.length;
            for(var i = 0; i < len; i++){
                var r = insertRows[i];
             alert("rowIndex:" + r.row);       
}        
   });

// Add button control to page
<input type="button" id="button1" value="button1"/>
See Also

Reference

Worksheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.