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

    Gets the table cell for the specified row and column.



    var ret = FpSpread1.GetCellByRowCol(row,column);


    Integer, row index of the specified cell
    Integer, column index of the specified cell

    Return Type

    TD element (HTML element)


    This method gets the entire table cell (the TD element in HTML) at the specified row and column of the displayed page on the client. Both row and column indexes must be valid. Since this returns a TD element, you can set styles and edit the text. Refer to the Microsoft HTML documentation for more information about what you can do with HTML.


    This is a sample that contains the method. On the client side, the script that contains the method would look like this:

    Copy Code
    <script type="text/javascript">
       function showCell() {
           var scell = FpSpread1.GetCellByRowCol(0, 0).outerHTML
           alert("Cell is" + scell);    }
    See Also