This is a migrated thread and some comments may be shown as answers.

Deleting from Grid

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bradley Schultz
Top achievements
Rank 1
Bradley Schultz asked on 23 Nov 2010, 05:32 PM
I am trying to incorporate the following function into the 'Delete' functionality of the RadGridView:

Protected

 

Sub RadGridApprovers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridApprovers.ItemCommand

 

 

If e.CommandName = "Delete" Then

 

 

 

    'do something
End
If

 

 


End
Sub


My question is: does the delete happen first or whatever commands I includein this function?

thank you

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Nov 2010, 06:22 AM
Hello,


You could use the DeleteCommand to execute your Delete query.

Checkout the code libraries which demonstrates the scenario.
Manual Insert/Update/Delete operations using Auto-generated editform with sql statements from the code-behind
Manual Insert/Update/Delete using FormTemplate and Sql backend


-Shinu.
Tags
Grid
Asked by
Bradley Schultz
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or