Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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#
Posted
Updated 23-Jan-17 22:28pm
v2
Comments
[no name] 23-Jan-17 20:23pm    
Have you actually tried anything? In any of your questions?
PIEBALDconsult 23-Jan-17 23:35pm    
What tools are you using? ADO.net? The ACE engine?

Try this but loop to the last row c# - Import Excel data to DataGridView[^]
 
Share this answer
 
See Working with MS Excel(xls / xlsx) Using MDAC and Oledb[^]. Note, this is the second time I have recommended this article to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900