protected void lnbDelete_OnClick(object sender, EventArgs e) { int[] arrayOfID = RadHelper.GetRowIdForDeletion(RadGrid1); if (TermService.CanDeleteTerms(arrayOfID)) { TermService.DeleteTerms(arrayOfID); btnCancel_OnClick(sender, e); } }