Spread for ASP.NET 7.0 Product Documentation
GetCellByRowCol
See Also Support Options
Spread for ASP.NET 7.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetCellByRowCol

Glossary Item Box

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.