Datagrid rowupdating event
But I think I can´t avoid to do this, because if I don't, the runtime created controls fade away.
Thanks to all you for answer, but the examples posted aren't my case.
The hashtable contains former values of the row's cells.
If the grid contains templated columns or is bound to some of the fields from the data source, the Values and Old Values must be updated to add those missing values.
If the values are alternated in the dictionary they are applied to the grid. The hashtable consists of the new values to be set on the row cells.
If the values are alternated in the hashtable they are applied to the grid and carried over to the data source as well.
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 Cancel property of the Grid View Update Event Args object to .
Upon modifying the values in textbox which come from Edit Item Template , the new values dont show in the event handler rowupdating(), instead I get the values which appear when the page was rendered.
The Row Updating event is raised when a row's Update button is clicked, but before the Grid View control updates the row.