你好,我使用你的代码进行排序,没有出现你所说的情况,代码起作用:
- this.FpsShow.ActiveSheetView.Cells[0, 2].Text = "3";
- this.FpsShow.ActiveSheetView.Cells[1, 2].Text = "1";
- this.FpsShow.ActiveSheetView.Cells[2, 2].Text = "2";
- FarPoint.Web.Spread.SortInfo[] s = new FarPoint.Web.Spread.SortInfo[1];
- s[0] = new FarPoint.Web.Spread.SortInfo(2, false);
- FpsShow.ActiveSheetView.Sort(0, 0, FpsShow.ActiveSheetView.Rows.Count, FpsShow.ActiveSheetView.Columns.Count, true, s);
-
复制代码 效果图:
png
|