Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using dynamical gridview...
i want to insert data in gridview and to databasa....





can somebody please help me ,how to do this.
Posted

I guess you need to start with ADO.NET

Take a look at this link.

http://msdn.microsoft.com/en-us/library/aa302325.aspx[^]

That will surely help you.

Regards,
Eduard
 
Share this answer
 
you can read data row by row and try to add them in parameter of your sqlCommand Insert command and then try to execute your command.
you can use a dataadapter to connect to your database and then can fill data to dataset and then add new data your dataset. then after that try simply use yourdataadapter.update().
Reference link:- Pulling Data from Gridview and Insert to Database[^]
 
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