Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > SetActiveCell |
Sets the active cell to the cell at the specified row and column.
[JavaScript]
FpSpread1.SetActiveCell(row,column);
None
This method changes the active cell to the one specified. Both row and column indexes must be valid. This method does not cause a postback to occur.
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 moveSelection() { FpSpread1.Copy(); // copies selection to Clipboard FpSpread1.SetActiveCell(0,0); // goes to top of displayed sheet FpSpread1.Paste(); // pastes selection } </script> |