回复 1楼vbagcl的帖子
可以使用 SheetView 下属性 AllowSort ,示例代码:
- FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView();
- FpSpread1.ActiveSheetView.SetValue(0, 0, 9);
- FpSpread1.ActiveSheetView.SetValue(1, 0, 5);
- FpSpread1.ActiveSheetView.SetValue(2, 0, 7);
- sv = FpSpread1.ActiveSheetView;
- if (IsPostBack)
- {
- sv.AllowSort = true;
- }
复制代码 |