<asp:TemplateField HeaderText="DELETE" HeaderStyle-CssClass="sfDelete">
<ItemTemplate>
<asp:ImageButton ID="imbDelete" runat="server" CausesValidation="False" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"
CommandName="Delete" ToolTip="Delete the enquiry" />
</ItemTemplate>
</asp:TemplateField>
Fire Event of grid view row Command..
-------------------------------------------------------------------------------------------------------
protected void gdvRecord_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "EDIT")
{
int RowNum = int.Parse(e.CommandArgument.ToString());
}
}