如何通过C#获取Excel工作表的最后一行 [英] How to get last row in excel sheet by C#
本文介绍了如何通过C#获取Excel工作表的最后一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我有excel sheet 2007并且我需要获得此表格中的最后一行excel并在DATAGRIDVIEW中显示
我如何通过c#来做到这一点?< br $>
i在Windows窗体中工作c#visual studio 2015
我尝试过:
如何通过c#
If i have excel sheet 2007 and i need to get last row in this sheet excel AND SHOW IT IN DATAGRIDVIEW
How can i do that by c# ?
i work in windows form c# visual studio 2015
What I have tried:
how to get last row in excel sheet by c#
推荐答案
获取excel表格中的最后一行尝试这个但循环到最后一行 c# - 将Excel数据导入DataGridView [ ^ ]
Try this but loop to the last row c# - Import Excel data to DataGridView[^]
参见使用MS Excel(xls / xlsx)使用MDAC和Oledb [ ^ ]。请注意,这是我第二次向您推荐这篇文章。
See Working with MS Excel(xls / xlsx) Using MDAC and Oledb[^]. Note, this is the second time I have recommended this article to you.
这篇关于如何通过C#获取Excel工作表的最后一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文