Strucked in getting resoluation, itemdatabound in radgrid firing twice in vb.net.
Thanks,
Lokesh
2 Answers, 1 is accepted
0
Viktor Tachev
Telerik team
answered on 22 Mar 2016, 07:26 AM
Hello Lokesh,
Note that the ItemDataBound is fired for every item in RadGrid. This means that the event is raised for every DataItem and also for the corresponding EditFormItem. If you would like to implement code that will be executed only for the DataItems in the grid you can use the following approach:
Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs)
If TypeOf e.Item Is GridDataItem Then
' add custom logic here
End If
End Sub
Check out the following article that elaborates on the matter in more detail: