When clicked, the Edit button is also replaced with an Update button and a Cancel button.Clicking the Update button updates the row in the data source with any value changes and returns the row to display mode.The Beginning Edit event is raised before the row enters edit mode.In the event handler you can cancel the operation or modify the cell being edited via the Cancel and Cell properties of the Grid View Beginning Edit Routed Even Args.Free counters Added on January 19,2012 Follow Me @vmsdurano A bit About Me Disclaimer The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers. Contol)Text; it werk just Fine any comment and thx for the code Instead of adding a Customer ID to your table and later pulling the text to get the ID number, a more reliable way to do it is to add a Data Key Names field to the grid example in the page: You can then access this information at any time with the following in code: Grid View1. Row Index]["id"]); You can do this with any field, but I've found customers get confused when they see the ID field and kept asking me why it was there, this also eliminates any issues if you change the display order of your table later (maybe add an edit/update/cancel control) Hey...great article ;)But I got a problem... So here I go with my example:protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) and the debugger says: Exception Details: System.
We can achieve the same functionality using Datakeys. , a column (represented by a Command Field object) with an Edit button for each data row is automatically added to the Grid View control.Clicking an Edit button for a row puts that row in edit mode.When entering edit mode the row to be edited represents the Current Item (the currently focused item) of the Rad Grid View.As it is a single object, at most one row can be edited at a time.