上一篇中实现了 C1FlexGrid的撤销还原功能,这篇是要仿 Excel 做一个行列删除以及单元格的自由合并拆分,楼主怕在原工程里复杂的说不清道不明,所以干脆提取出来做了一个 Demo 来说明实现过程,请指教了. 一 前提概要 C1FlexGrid 中自带的 AllowMerging 属性可以控制单元格的自动合并,条件是相邻单元格的内容相同,就自动合并. 其中 Row 和 Column 还有 C1FlexGrid 本身均可设置 AllowMerging 属性,如果设置某行的 AllowMer…