Click here to Skip to main content
16,018,919 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
pls some one tell that how to add Data To GridView From TextBox & then add data to database from gridview

Pls help me to solve this....
Posted

You can create a temporary DataTable, In that create datarow dynamically from the TextBox and Bind That Datatable To gridView and after that on certain event update that datatable to database.
 
Share this answer
 
You need to change the steps..first update database then bind with gridview..
Have a look at this one..
Insert, Update, Delete with Gridview ... Simple Way[^]
 
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