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

RadGrid cannot see the OnItemDataBound

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David Kucharski
Top achievements
Rank 1
David Kucharski asked on 12 Feb 2013, 10:11 PM
I am trying to programmatically set the RadGrid's ItemDataBound property.

In my code I am creating an instance of the RadGrid

Dim RadGrid1 As RadGrid = New RadGrid()

 

 

RadGrid1.ID = "RadGrid1"

But when I go to set the Property of my RadGrid1, ItemDataBound is not a property.

Am I doing something wrong?

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Feb 2013, 04:17 AM
Hi,

You can attach the ItemDataBound event as follows.

VB:
Private Sub RadGrid2_ItemDataBound(sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid2.ItemDataBound
   'Your code
End Sub

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