Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetCellByRowCol |
Gets the table cell for the specified row and column.
[JavaScript]
var ret = FpSpread1.GetCellByRowCol(row,column);
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:
JavaScript |
Copy Code
|
---|---|
<script type="text/javascript"> function showCell() { var scell = FpSpread1.GetCellByRowCol(0, 0).outerHTML alert("Cell is" + scell); } </script> |