我用过你说的这种方式,但是没有起效,这个addRows根据我的js调试结果是添加行之前执行的
sheet.bind(GC.Spread.Sheets.Events.RowChanged, function (e, info) {
if (info.propertyName == "addRows") {
var range1 = new GC.Spread.Sheets.Range(0, 2, 1, 1);
var range2 = new GC.Spread.Sheets.Range(info.row, 2, 1, 4);
sheet.fillAuto(range1, range2, { series: GC.Spread.Sheets.Fill.FillSeries.column, fillType: GC.Spread.Sheets.Fill.FillType.auto });
}
}); |