954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

update database through gridview

Hello,
I am working in asp.net 2.0.i am displaying data from database through gridview,now i want that that one column get added with a link of update,that after clicking on update link database get update.

Thanks in advance,please help me as soon as possible.

priyankaagrawal
Newbie Poster
21 posts since Feb 2007
Reputation Points: 10
Solved Threads: 1
 

Hello,
You can update a data from GridView by just clicking to the update link, for this you have to add update query for all field of gridview.

goradaranaresh
Newbie Poster
1 post since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

hi,
you can go to my post here http://www.daniweb.com/techtalkforums/thread70934.html

you can see the update function, how it works
b4 that you need to edit your gridview column

add "command field" -> then you select the edit, select, delete, and add new,
of course u need to bind your gridview..

then add the query at the end of the code which u viewed from my post..near the red fonts.

however, i am having difficulty on inserting new item...

if some1 knows...mind helping me on it?
thanks :)

koh
Junior Poster in Training
73 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You