private void DataGrid1_ItemDataBound (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) {LinkButton Button1 = (LinkButton) e.Item.FindControl ( "LinkButton1"); if (! Button1 = null) {Button1.Attributes.Add ( "Onclick", "Return Confirm" will not be recovered after delete, continue? '); ");}}