Spread ASP.NET 16
Spread for ASP.NET 16 Product Documentation / Client-Side Scripting Reference / Scripting Members / Methods / SetSelectedRange
In This Topic
    SetSelectedRange
    In This Topic

    Sets the specified range of cells as selected.

    Syntax

    [JavaScript]

    FpSpread1.SetSelectedRange(row,column,rowCount,columnCount);

    Parameters

    row
    Integer, starting row index
    column
    Integer, starting column index
    rowCount
    Integer, number of rows in selection
    columnCount
    Integer, number of columns in selection

    Return Type

    None

    Remarks

    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.

    Example

    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 setFirstRange() {
          FpSpread1.SetSelectedRange(5,3,12,10);
       }
    </script>
    
    See Also