Gridview Problem
-
Hi I have one gridview control.I have taken one button as Item tamplete,command name is "Delete". I have created one function: protected void gvUser_DeleteCommand(object sender,GridViewCommandEventHandler e) { Response.Write("hi"); } where I call this function?I was trying to call on "OnRowDeleted","OnRowCOmmand" but generates an error "No overload for 'gvUser_DeleteCommand' matches delegate 'System.Web.UI.WebControls.CommandEventHandler'" Pls if u have any solution,as early as possible reply me. Thanks monika
-
Hi I have one gridview control.I have taken one button as Item tamplete,command name is "Delete". I have created one function: protected void gvUser_DeleteCommand(object sender,GridViewCommandEventHandler e) { Response.Write("hi"); } where I call this function?I was trying to call on "OnRowDeleted","OnRowCOmmand" but generates an error "No overload for 'gvUser_DeleteCommand' matches delegate 'System.Web.UI.WebControls.CommandEventHandler'" Pls if u have any solution,as early as possible reply me. Thanks monika
Ah - you need to read the docs.
monika_vasvani wrote:
GridViewCommandEventHandler e)
This will be an eventargs, probably an overload, but it sure isn't the eventhandler that is passed in to the method. That's what the error was telling you. I'd guess at GridRowCommandEventArgs e, but check MSDN.
Christian Graus Driven to the arms of OSX by Vista.