Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WebForms Excel Gridview , +
Hey,
 
As i am new to ASP.NET and C#, i really need some help on my project. The step-wise procedure of my project is given below -
 
1. Browse for an Excel file and when upload button is clicked, the content of the excel file it should be displayed on the webpage in the form of a grid.
 
2. User should be allowed to make changes in the cells of the Grid.
 
3. Another button called Submit is to be created. Upon clicking it, it should copy the changed contents of that Grid into the Database tables.
 
I have been able to do only the first step. I need help on the other steps.
 
Thanks.
Posted 8-Jun-11 21:47pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I believe your only issue is reading from the excel file, rest I think you can do on your own. Try these steps:
 
1. Read excel to the grid. This link will be of help.
2. Edit data in your grid.
3. Once you are done with editing, you can take out the datasource of the grid(which was set in step 1) as DataTable.
4. Now this DataTable can be updated to the database. Try Google.
 
Hope this help.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I am able to read from the excel file and also have been able to display the excel content in the form of a grid. The problem that i am facing is that i am not able to edit the values or data present in the grid. Let me know if you find any solution for this.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

hello,
 
Please visit below link :
Click Here....
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

Hi,
I recommend to use OLEDB JET providers to read data from Excel & manipulate
http://www.codeproject.com/KB/office/excel_using_oledb.aspx
  Permalink  
v2
Comments
RakeshMeena at 15-Jun-11 5:12am
   
Corrected typo!

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



Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 15 Jun 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100