Spread for ASP.NET 10 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > Add |
Inserts a new row at the end of the sheet.
[JavaScript]
FpSpread1.Add();
None
None
This method is similar to pressing the Add button on the command bar. This method causes a postback to occur. When this method is called, the Insert event is raised on the server.
You cannot specify where to add the row; it is inserted at the end of the sheet.
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 addRow() { FpSpread1.Add(); // adds a row to the sheet } </script> |