A
anonymous
Hello,
I need to pass e.item.dataitem to my user control,
from the ItemCommand method. But each time I do this, I
get the following error:
Object variable or With block variable not set.
It happens when I access the data. Its something like this:
Private Sub Dg_ItemCommand...
Dim drv As Object = e.Item.DataItem
objUC.Binddata(drv(1), drv(2), "%", "%","%")
End Sub
Any idea?
I need to pass e.item.dataitem to my user control,
from the ItemCommand method. But each time I do this, I
get the following error:
Object variable or With block variable not set.
It happens when I access the data. Its something like this:
Private Sub Dg_ItemCommand...
Dim drv As Object = e.Item.DataItem
objUC.Binddata(drv(1), drv(2), "%", "%","%")
End Sub
Any idea?