When I click save instead of saving to second page the first page row gets modified.Example if i click edit in 2nd row of 2nd page and after i click update, the 3nd row of 1st page is modified with the new value and not the 2nd row of 2nd page.On clicking the delete button, i get the row deleted from the DB. I am using a simple Gridview to display the emp id (as a link for selecting), emp name, emp Age. Using the delete button, the record can be deleted. You indicate that it is the former so that your update command isn't executing. NET Grid View - Add a new record I had the same problem.But, Update is not working as it is suppsoed to work. But the Edit-Update/Cancel functinality is not working. The old values are not updated with the new values. I found that in Visual Web Developer I had to specify the "Data Key Names" property of the Grid View as the primary key for my database table. So I clicked on the Grid View and in the Properties tab, I typed "id" (no quotes) in the "Data Key Names" box. I found that in Visual Web Developer I had to specify the "Data Key Names" property of the Grid View as the primary key for my database table. So I clicked on the Grid View and in the Properties tab, I typed "id" (no quotes) in the "Data Key Names" box. We will use Template Field, whenever we want to define some custom control in the data bound controls like Grid View, Data Grid or Data Repeater.If he clicks edit (or) in the edit mode he can be able to see the Textbox.Data Key Names was not my problem; I had it set correctly.
Quick google search guided me to move the event to Row_Created event and every thing is okay . Thanks a tonne in Advance and any inputs will be valued and appreciated . I do notice that if I break within the Grid View1_Row Data Bound event during a refresh of the page, the values are there. This code works fine in the first page of grid view, but when I try to edit the 2nd page it does not work.When I click on edit button the corresponding row edit template is loading.Additionally, you will have the to upgrade your Passions Network account (if you would like).city with the name "Syracuse", and is the fifth most populous city in the state of New York following New York City, Buffalo, Rochester, and Yonkers.