S
simon
I have dataRepeater and I use its dataBound event:
Private Sub rprPlists_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.RepeaterItemEventArgs) Handles
rprPlists.ItemDataBound
If (e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType =
ListItemType.Item) Then
Dim drv As DataRowView
drv = e.Item.DataItem
End If
End Sub
I get an error message:
Specified cast is not valid.
Why, what is wrong here?
Thank you,
Simon
Private Sub rprPlists_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.RepeaterItemEventArgs) Handles
rprPlists.ItemDataBound
If (e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType =
ListItemType.Item) Then
Dim drv As DataRowView
drv = e.Item.DataItem
End If
End Sub
I get an error message:
Specified cast is not valid.
Why, what is wrong here?
Thank you,
Simon