客户端一般通过JavaScript获得需要的信息:
GetValue:
- <script language="javascript">
- function window.onload() {
- FpSpread1.onmousemove = test;
- }
- function test() {
- var col = event.srcElement.cellIndex;
- var row = event.srcElement.parentElement.rowIndex - 1;
- //we have a hidden row used for internal use
- if((!isNaN(col)) && (!isNaN(row)) && (0<=row) && (row<FpSpread1.GetRowCount())) {
- var cell = FpSpread1.GetCellByRowCol(row,col);
- cell.style.backgroundColor = "red";
- }
- }
- </script>
复制代码
更多信息,可参考安装程序带的帮助文档:Spread for ASP.NET 7.0 Product Documentation > Client-Side Scripting Reference |