回复 9楼Julie_Zhao的帖子
尝试下面代码,看是否可行:
- <script language="javascript" type="text/javascript" id="FpSpread1_Script0">
- function FpSpread1_SelectionChanged(event){
- var ss = FpSpread("FpSpread1");
- var table = document.getElementById("FpSpread1_viewport");
- var locked = table.rows[ss.GetActiveRow()].cells[ss.GetActiveCol()].attributes["locked"];
- if (locked != undefined && locked.value == "true") {
- document.getElementById("Text1").value = "【" + ss.GetActiveRow() + "," + ss.GetActiveCol() + "】 单元格被锁住了!!!";
- }
- }
- </script>
复制代码 |