回复 1楼oceansoft的帖子
oceansoft 你好,
目前 Spread 本身并没有提供该功能,可以在移除列或行之后,重新设置合并单元格。
- public MainPage()
- {
- InitializeComponent();
- this.gcSpreadSheet1.ActiveSheet.AddSpanCell(new GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 2, 2), GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells);
- }
- private void button1_Click(object sender, RoutedEventArgs e)
- {
- this.gcSpreadSheet1.ActiveSheet.RemoveColumns(0, 1);
- this.gcSpreadSheet1.ActiveSheet.AddSpanCell(new GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 2, 2), GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells);
- }
复制代码 |