Example: Status = open Hardware = PC When you click on update, it changes the values as following: Status = PC Hardware = open status and hardware are textboxes.
I tried to do it in the Row Updated event but I didn't succeeded nor I don't know whether this is possible at all... In what regards setting the cell value, property "value" does not exist, probably you'd wanted to say "Text"... In second column i have name and in third i have age.Since you are not using the datasource controls(which is a good thing), the Old Values and New Values collections will not be populated automatically. So, here is some sample code that I use, and maybe it will help you: This goes in your Row Updating event Dim cell As Data Control Field Cell = Nothing 'This type will change if you are using Bound Fields 'The collection(s) have to be populated for EACH cell. Hi, It appears that the fields are wrongly binded to the Grid View, can you check how you are binding the fields. It will help if you can tell us more about how ur update is working are u using Object Data Source etc..Samu Zhang Microsoft Online Community Support Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. Change value of Gridview Data in edit mode Hello everyone, I am having problem trying this method and hope you can give me some hints on how to do it - thanks in advance I have a Grid View when a record is in edit mode I want to change the Data fields to the current Logon User and current Date replacing what's already there.A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.I have a Grid View which was binded to an Object Data Source with edit capabilities enabled.Whenever the user edits a row and changes a given cell, I'd like to change another row to edit mode and programatically change a cell value (according to the new cell value typed by the user).I will be thankfull if anyone can help me on this issue.its best to use the Row Updating event handler for this.Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.Since this is a gridview, the Row Updating event will pass on in the currently edited row, and what logic you put in your method will run before the update actually occurs.