Re: GridView
Try using a commandfield column instead of the templatefield with a
linkbutton.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Samuel" wrote in message
news:OQysh4N3HHA.1204@TK2MSFTNGP03.phx.gbl...
I have the following code or a delete button in the GridView Control and the
RowDeleteing event is not raised
Can anyone sugget hat is wrong with the code?
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="delete" Runat="server"
OnClientClick="return confirm('Are you sure you want to delete this
record?');"
CommandName="Delete" Text="Delete"/>
</ItemTemplate>
</asp:TemplateField>
--
Samuel Shulman
SBS Technologies Ltd
07824 812518
Date:Sun, 12 Aug 2007 21:13:02 +0200
Author:
|