回复 1楼未名账户的帖子
1跨行、跨列操作,无法实现赋值,只能一个cell一个cell赋值。参考代码:
- var spread = document.getElementById("FpSpread1″);
- var rg = spread.GetSelectedRange();
- var val = "data";
- for (var i = 0, r= rg.row; i < rg.rowCount; i++, r++)
- {
- for (var j =0, c= rg.col; j < rg.colCount; j++, c++)
- {
- spread.SetValue(r, c, val, true);
- }
- }
复制代码
2 Spread ASP.net 通过前端实现单元格合并(Cell Merging) |