No Overload for editgrid_click matches delegate 'system.eventhandler'

Posted by Gayathri under ASP.NET on 4/2/2010 | Views : 6332 | Status : [Member] | Replies : 1
public void editgrid_click(object sender, DataGridCommandEventArgs e):



No Overload for editgrid_click matches delegate 'system.eventhandler'


This is the error i am getting for the editgrid_click event of gridview1.
I have called this event as below.
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="Button1" runat="server" Text="edit" OnClick="editgrid_click" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField></asp:TemplateField>

Please help




Responses

Posted by: Vuyiswamb on: 4/2/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
This means that there no Event handler named editgrid_click defined

Thank you for posting at Dotnetfunda
[Administrator]

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response