Check the below link to find the answer
http://www.codeproject.com/aspnet/Gr...firmDelete.asp
sparty1022 wrote:
Quote:
I have a stored procedure that I pass a parameter to, to delete a record.
What I haven't found is how to identify the parameter to the delete call.
The parameter that should be passed is the "datasourcekey field" of
gridview1.
This is the code:
DeleteCommand="sp_LOI_Delete_NewProgram" DeleteCommandType="StoredProcedure"
DeleteParameters
asp:ControlParameter ControlID="GridView1" Name="NewProg_ID"
PropertyName="DataKeys" Type="Int64" /
/DeleteParameters |