Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is it possible to copy multiple rows and columns of data record from excel and directly paste it in GridView?

For example I have Excel record

FirstName	LastName	Address	   Age	    Contact
kaye	    cruz	    hjjkh	    3	    9879
halt	    man	        jhkkl	    4	    7689
Just	    mik	        kjhk	    7	    99089


then I have multiple records of people and I want to just copy the whole thing and paste the values into corresponding fields in GridView.

Can i directly copy and paste the excel data to the webpage/gridview (in aspx page) or if there is any other method to do this? Thanks.

What I have tried:

I'm still searching for possible methods for this. Please can you help me with this? Thanks.
Posted
Updated 16-Feb-17 16:57pm
v2

1 solution

Quote:
Can i directly copy and paste the excel data to the webpage/gridview (in aspx page)

No, its not possible directly.

Yes,through javascript It is possible by getting the value from clipboard and then capture the rows and cells and then paste/assign the data to the respective cells in gridview, its a tedious process

Alternatively you can look into Handsontable JS Excel Framework[^]
 
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