回复 1楼ruby的帖子
需要在打开 xml 文件后设置 AutoPostBack 属性:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- //设置FpSpread为行选择模式
- FpSpread1.ActiveSheetView.OperationMode = FarPoint.Web.Spread.OperationMode.RowMode;
- this.FpSpread1.Open(this.Server.MapPath("测试数据.xml"));
- this.FpSpread1.Rows.Add(this.FpSpread1.Rows.Count, 2);
- this.FpSpread1.ShowHeaderSelection = true;
- FpSpread1.Sheets[0].AutoPostBack = true;
- }
复制代码 |