9
Answers

Copy all data from datagridview to another datagridview

Nihcas Rednuk

Nihcas Rednuk

8y
253
1
I have created a windows form(C#), in which i have two datagridview . 
datagridview1 has 7 columns (Like Sr.no, Name, Class,Div,Rank,Age,City) 
and datagridview2 has 4 column(Like Sr.no, Name, Class,City) 
i want to copy all the data from the datagridview1 to datagridview2 by a button click, in such a way that my datagridview2 displays all the data from datagridview1. 
Answers (9)
0
spgilmore

spgilmore

NA 591 0 20y
What for? Why not just use an httprequest to download it directly from the server? If you have to do this, you can always base-64 encode the file and send it as a string in a webservice. I belive that .NET webservices support DIME, which is smaller and has other benefits, but I don't know anything about it.