protected override void Render(System.Web.UI.HtmlTextWriter writer) { Control cntUpdateBtn = FpSpread1.FindControl("Update"); Control cntCancelBtn = FpSpread1.FindControl("Cancel"); // Control cntCopyBtn = FpSpread1.FindControl("Copy"); // Control cntCutBtn = FpSpread1.FindControl("Clear"); // Control cntPasteBtn = FpSpread1.FindControl("Paste"); Control cntPageNextBtn = FpSpread1.FindControl("Next"); Control cntPagePreviousBtn = FpSpread1.FindControl("Prev"); Control cntPageEditBtn = FpSpread1.FindControl("Edit"); //Control cntPagePrintBtn = FpSpread1.FindControl("Print"); if ((cntUpdateBtn != null)) { TableCell tc = (TableCell)cntUpdateBtn.Parent; TableRow tr = (TableRow)tc.Parent; tr.Cells.Remove(tc); tc = (TableCell)cntCancelBtn.Parent; tr.Cells.Remove(tc); tc = (TableCell)cntPageEditBtn.Parent; tr.Cells.Remove(tc); //tc = (TableCell)cntCopyBtn.Parent; //tr.Cells.Remove(tc); //tc = (TableCell)cntCutBtn.Parent; //tr.Cells.Remove(tc); //tc = (TableCell)cntPasteBtn.Parent; //tr.Cells.Remove(tc); tc = (TableCell)cntPageNextBtn.Parent; tr.Cells.Remove(tc); tc = (TableCell)cntPagePreviousBtn.Parent; tr.Cells.Remove(tc); } base.Render(writer); }