All grid-like components of asp.net have the same machinism as for editing a single line. Actually by default for asp.net only for editing one line in the grid.
asp: button asp: linkbutton ItemTemplate CommandName, "Edit". , , . DataGrid EditCommand. EditItemIndex Item.Itemindex eventargs. , EditItemTemplate.
2 . , CommandName "", CommandName "".
"" UpdateCommand. , (: database) EditItemIndex -1 → (ItemTemplate AlternateItemTemplate).
"" CancelCommand. si EditItemIndex -1.
DataGrid en, asp.net, GridView, "Boilerplate", . Google . .
, ?