Spread for ASP.NET 8.0 Product Documentation
GetCellByRowCol

Gets the table cell for the specified row and column.

Syntax

[JavaScript]

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

Parameters

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

Return Type

TD element (HTML element)

Remarks

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.

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 showCell() {
       var scell = FpSpread1.GetCellByRowCol(0, 0).outerHTML
       alert("Cell is" + scell);    }
</script>
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options | Documentation Feedback