回复 3楼753159的帖子
当前 Spread 提供MoveRows方法,用于行移动:
- private void Page_Load(object sender,System.EventArgs e)
- {
- if(this.IsPostBack)return;
- FpSpread1.ActiveSheetView.ColumnCount=10;
- FpSpread1.ActiveSheetView.RowCount=10;
- FarPoint.Web.Spread.Model.DefaultSheetSpanModel model=(FarPoint.Web.Spread.Model.DefaultSheetSpanModel)FpSpread1.ActiveSheetView.SpanModel;
- model.Add(0,0,4,1);
- model.Add(0,1,4,1);
- }
- private void Button1_Click(object sender,System.EventArgs e)
- {
- FarPoint.Web.Spread.Model.DefaultSheetSpanModel model=(FarPoint.Web.Spread.Model.DefaultSheetSpanModel)FpSpread1.ActiveSheetView.SpanModel;
- model.MoveRows(0,7,2);
- }
复制代码 |