How to update row in gridview?

How to get value in current cell of what is being edited in gridview in ASP.net?

  • I have a gridview and need to get whether or not a checkbox has been checked off and set a label with a complete date in the same gridview then finally allow the update to post back to Access (so checkbox true and complete date = now) How do I get values from the current cell I am editing and how do I set values in the current row I am editing before it is posted back to Access?

  • Answer:

    You can use javscript to set your data on the client or loop through the rows and cells of the grid on the server before update something in Access. If you use map gridview directly to database through datasource object then you can utilize datsource's updating and inserting events onthe server. Both events running before the data post to database

Mr M at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.