troubleshooting Question

Different approach to EDIT command in gridview

Avatar of psk1
psk1 asked on
3 Comments1 Solution1024 ViewsLast Modified:
I have a gridview mainly composed of templatefields.  I want one column to be editable, but I don't like the "choose a row, click Edit, postback, enter data, click Update, postback, store changes" method.  I want to just display my (non-readonly) textboxes in this column just like any other templatefield, but have one button for the whole gridview which says "update underlying data with what the user has entered in these textboxes in these templatefields."  

For this I will need to cycle through the templatefields in my gridview, retrieving not only the values entered by the client into each textbox by row, but also the DataKey for each row so that I can make the update in the database.

Can anyone give me a down-and-dirty idea of how to accomplish this?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros