Cannot access individual rows in this collection because the table has vertically merged cells c#
来源:互联网 发布:云盘搬家软件 编辑:程序博客网 时间:2024/06/05 22:35
我们在处理表格的时候经常会遇到下面的问题。无论add还是delete Row都是不能直接操作的。经常报“Cannot access individual rows in this collection because the table has vertically merged cells. C#” 下面是我的一点总结。
------------------------------------------------------------
| | A | |
| B ---------------
| | C | |
|--------------------
------------------------------------------------------------
上面是表格的大概样子,B是跨行的,A和C分别在两行上,我需要用程序动态的增加像B和C那样的行
doc.Tables[1].Rows.Add(ref beforRow); 这句代码只是对于很规则的表格。怎么办?
1. doc.Tables[1].Cell(2, 3).Split(ref rownum, ref colnum); //先把合并的Cell拆开成正常的。之后再用上面的语句。
2. object beforRow = doc.Tables[1].Cell(2,3);
doc.Tables[1].Rows.Add(ref beforRow);
- Cannot access individual rows in this collection because the table has vertically merged cells c#
- java.lang.IllegalStateException: Cannot perform this operation because the connection pool has been
- 数据库操作的异常Cannot perform this operation because the connection pool has been close
- Android Cannot perform this operation because the transaction has already been marked successful
- Cannot perform this operation because the connection pool has been closed
- error:The calling thread cannot access this object because a different thread owns it解决方法
- ios [access] This app has crashed because ……
- Get the rows count of all the table in Sybase
- js获取table的行/列:table.rows[].cells[]
- 168.You execute this command to drop the ITEM table, which has the primary key referred in the ORDER
- 关于 ORA-22905: cannot access rows from a non-nested table item
- Implement editable Cells in table
- javascript 动态创建 table的rows与cells
- This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
- This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
- This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
- The Controls collection cannot be modified because the control contains code blocks (i.e. ).
- 错误:The Controls collection cannot be modified because the control contains code blocks (i.e. ).
- 设置首页的js代码
- 在Linux 2.6内核下编译可以加载的内核模块
- 2.计算出1900年1月1日至当前日期之间总共间隔多少天,将其除以7取余数,该结果即为当月第一天是星期几,按日历格式输出
- cacti及其插件的安装配置
- sql 删除重复行怎么写
- Cannot access individual rows in this collection because the table has vertically merged cells c#
- scull驱动学习!
- mysql宕机分析(事务日志损坏)
- 如何从其它的方法中删除对话框?
- POJ2586--Y2K Accounting Bug
- oracle丢失更新示例及解决方案
- [leetCode] Gray Code
- vsftp设置不同的用户进入不同的目录
- 厚积薄发,丰富的公用类库积累,助你高效进行系统开发(13)