Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If e.CommandName = "lkdelete" Then

GobjDbconn.OpenConn()

MSSql = " Delete from vsolv_trn_tpurchase where purchase_gid='" & e.CommandArgument & "' "

MnResult = GobjDbconn.ExecuteNonQuerySQL(MSSql)

If MnResult = 1 Then
lblerrmsg.Text = " Purchase Data deleled successfully"
Else
lblerrmsg.Text = " Purchase Data deleted failed "
End If

GobjDbconn.CloseConn()

End If

<asp:ImageButton ID="btndelete" CausesValidation="false" runat="server" ImageUrl="~/images/Button_Delete.png"
ToolTip="Click to Delete" OnClientClick="javascript:return confirmDelete();"
CommandName="lkdelete" Height="25px" Width="25px" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "purchase_gid") %>'>

What I have tried:

Its normal delete is work but i hav try to delete data form radgrid only dont its not affected by DB data


help for that problem
Posted
Updated 19-Apr-16 22:18pm
v2

1 solution

Your radGrid is bound to the data you are fetching from DB table.
So if without deleting data from DB table, you want to empty radGrid then just unbind it.

Unbinding radGrid will empty the grid but not the DB table.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900