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

Programmatically setting OnItemCommand in CodeBehind

1 Answer 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 03 Aug 2012, 08:09 PM
Hello, I am trying to set the OnItemCommand in the code behind in visual basic with no luck.

For example, I am trying to set the property like this which works in C#,

grid1.ItemCommand += New GridCommandEventHandler(RadGridView_ItemCommand)
 However in VB.net I don't even have access to the ItemCommand event.

Any help is greatly appreciated.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 06 Aug 2012, 04:27 AM
Hello,

Try attaching the event handler as shown below.
VB:
Private Sub RadGrid1_ItemCommand(sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
End Sub

Thanks,
Shinu.
Tags
Grid
Asked by
George
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or