How to update row in gridview?

In ASP.NET how to call edit functionality in gridview?

  • we want that when we click on the row of our gridview it should display text boxes in the gridview so that data can be updated there only. but we want this thing to happen when we click on the row, irrespective on the column or button. clicking anywhere on the row will display textboxes to update.

  • Answer:

    You'll need to add a click event to each row during the 'RowDataBound' event. See http://www.codeproject.com/KB/webforms/EditGridviewCells.aspx for examples.

mandeep 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.