[英]Is there a limit to the number of rows that can be added to a DataTable in c#?
I am fetching data from excel file, decoding the SAML requests and then storing the decoded requests in a DataTable - all done in C#. 我正在从excel文件中获取数据,解码SAML请求,然后将解码后的请求存储在DataTable中-所有操作均在C#中完成。
The problem is that when I count the number of rows that have been added to the DataTable using this code: 问题是当我计算使用以下代码已添加到DataTable的行数时:
int totalRows = table.Rows.Count;
The output is not the same as the number of rows in the actual excel file. 输出与实际excel文件中的行数不同。 I was just wondering if there is a limit to the number of rows that can be added from excel file to a DataTable?
我只是想知道从excel文件可以添加到DataTable的行数是否有限制?
The maximum number of rows that a DataTable can store is 16,777,216.
DataTable可以存储的最大行数为16,777,216。
You can find more information on MSDN: DataTable Class 您可以在MSDN上找到更多信息: DataTable类
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.