petak, 11. rujna 2009.

GridView Delete Item template: confirmation question before deleting.

To make Delete button editable disable automatic delete and make it in ItemTemplate as LinkButton with command name "Delete".
To ask confirmation question use OnClientClick = "return confirm('some text ');"

To perform deleting after "deleteOnSubmit" you need to "SubmitChanges" and to see changes in gridview you need to "DataBind" gridview.