回复 11楼lvxuanyou的帖子
SortRows 排序后单元格无法合并是产品设计,可以通过 SortRange 方法替代:
- private void sortToolStripMenuItem_Click(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.SortInfo[] sort = new FarPoint.Win.Spread.SortInfo[1];
- sort[0] = new FarPoint.Win.Spread.SortInfo(0, false, System.Collections.Comparer.Default);
- fpSpread1.ActiveSheet.SortRange(0, 0, 40, 1, true, sort);
- }
复制代码 |