protected override void OnLoad(EventArgs e) { base.OnLoad(e); EnsureChildControls(); if (btnDelete != null) btnDelete.Click += btnDelete_Click; }