Protected Sub myGridView_RowDeleting(ByVal sender As Object, ByVal e As GridViewDeleteEventArgs) Handles myGridView.RowDeleting
strSQL = "DELETE FROM typeform WHERE Idtypeform = " & myGridView.DataKeys.Item(e.RowIndex).Value & ""
objCmd = New OleDbCommand(strSQL, objConn)
objCmd.ExecuteNonQuery()
myGridView.EditIndex = -1
BindData()
End Sub
Tag : .NET, Ms Access
Date :
2010-12-02 19:45:38
By :
ict
View :
1306
Reply :
2
No. 1
Guest
Code
<asp:linkbutton id="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('Are you sure you want to delete this record?');" Text="Delete" />