请参考如下代码
- function spreaclick() {
- var spread = document.getElementById("<%=FpSpread1.ClientID %>");
- if (spread.ActiveCol == 0) {
- var value = spread.GetValue(spread.ActiveRow, spread.ActiveCol);
- if (value !== "true") {
- spread.SetValue(spread.ActiveRow, spread.ActiveCol, false);
- }
- spread.UpdatePostbackData();
- spread.CallBack("button");
- }
- };
复制代码 |