Hello, I have a custom GridView and it overrides onRowDeleting and doesn't
call base.OnRowDeleting because the person implementing had undesirable
effects. the problem is I now when clients of this control register their
own event handlers for RowDeleting, it is never raised.
I'm trying to add lines 1 - 5 to my overriden OnRowDeleting method but can't
because the key accessed in base.Events is EventRowDeleting, which is an
object that is a private constant that i dont have access to in my derived
control.
How do I get a handle to any event handlers so I can call them???
// this is the dissasembled method for GridView:
protected virtual void OnRowDeleting(GridViewDeleteEventArgs e){ bool
isBoundUsingDataSourceID = base.IsBoundUsingDataSourceID;1
GridViewDeleteEventHandler handler = (GridViewDeleteEventHandler)
base.Events[EventRowDeleting];2 if (handler != null)3 {4
handler(this, e);5 } else if (!isBoundUsingDataSourceID && !e.Cancel)
{ throw new HttpException(SR.GetString("GridView_UnhandledEvent",
new object[] { this.ID, "RowDeleting" })); }}