Hi I am trying to edit a gridview using a checkbox template field. For this I have added a templatefield of checkbox. Now when I click the checkbox it goes to its event handler where I set the Gridview's Editindex = the rowIndex. The particular row for which the checkbox was clicked switches to the edit mode but the checkbox state does not persists, the checkbox still shows unchecked. When I again click the same checkbox, this time it persists and now when I uncheck the checkbox it successfully brings the gridviewrow out of the edit mode
Please find attached the aspx and aspx.cs files. they are not complete so they cannot be used as it is but it includes everything related to the problem.