Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > SetSelectedRange |
Sets the specified range of cells as selected.
[JavaScript]
FpSpread1.SetSelectedRange(row,column,rowCount,columnCount);
None
This method selects the specified range of cells on the displayed page on the client. The row and column indexes, as well as the row and column counts 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 language=javascript>
function setFirstRange() {
FpSpread1.SetSelectedRange(5,3,12,10);
}
</SCRIPT>
|