您好,目前只能做到这种效果:
- sheet.bind(GC.Spread.Sheets.Events.SelectionChanged, function (e, info) {
- sheet.suspendPaint();
- if (info.newSelections[0].row == -1) {
- sheet.setSelection(0, undefined, 1, 1);
- }
- if (info.newSelections[0].col == -1) {
- sheet.setSelection(undefined, 0, 1, 1);
- }
- sheet.resumePaint();
- });
复制代码 |