Value setters are for placing values into data when field cannot be used. removing formatting before storing into the columns = [ // this example assumes the data is in an array, // so you want to access indexes of the array rather // than using field , // this column is for a number, the default editor sets // strings, so we convert the string to a number ]; for easier editing of data that uses reference data for display. Using reference data simplifies this, especially if editing.
For example, you might have country codes in your data e.g.
When the user clicks EDIT then makes a change or two, then UPDATE, the changes are lost. Also, my code below works pretty well, I even have the framework worked out to get my data values from the gridview. the problem is still saving the edits done by the user to the gridview in edit mode. 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.event is raised when a row's Update button is clicked, but after the Grid View control updates the row.