Occurs when the Update button is clicked for an item in the System.Web.UI.WebControls.DataGrid control.
The DataGrid.UpdateCommand event is raised when the Update button for an item is clicked.
A typical handler for the DataGrid.UpdateCommand event updates the data, sets the DataGrid.EditItemIndex property to -1 (to deselect the item), and then rebinds the data to the System.Web.UI.WebControls.DataGrid control.
Text is not HTML encoded before it is displayed in the System.Web.UI.WebControls.DataGrid control. This makes it possible to embed script within HTML tags in the text. If the values for the control come from user input, be sure to validate the values to reduce security vulnerabilities.
For more information about handling events, see [<topic://cpconEventsOverview>].