Datagrid Delete button event-RESOLVED
OK, This is a Delete button in a datagrid, I can't seem to get the event to fire.
VB Code:
Sub dgProd_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgProd.DeleteCommand
Response.Write("hello")
End Sub
VB Code:
<asp:datagrid id="dgProd" style="Z-INDEX: 101; LEFT: 40px; POSITION: absolute; TOP: 136px" runat="server"
Width="648px" Height="128px" AutoGenerateColumns="False" OnDeleteCommand="dgProd_DeleteCommand">
Seems to be working today....go figure
Re: Datagrid Delete button event
Do you actually have a button with the CommandName set to delete anywhere in the DataGrid? Or perhaps are you using a ButtonColumn.
DJ
Re: Datagrid Delete button event
I am using a button column that is built in the datagrid control