M
mark.norgate
Hello
I have a problem in my repeater's OnItemCreated method.
I'm trying to get the data row for the repeater like this:
Dim datar As DataRow = CType(e.Item.DataItem, DataRow)
but the compiler complains "Unable to cast object of type
'System.Data.Common.DataRecordInternal' to type
'System.Data.DataRow'". What the hell is a DataRecordInternal? And why
isn't my DataItem a DataRow?
Can someone help?
Ta,
Mark
I have a problem in my repeater's OnItemCreated method.
I'm trying to get the data row for the repeater like this:
Dim datar As DataRow = CType(e.Item.DataItem, DataRow)
but the compiler complains "Unable to cast object of type
'System.Data.Common.DataRecordInternal' to type
'System.Data.DataRow'". What the hell is a DataRecordInternal? And why
isn't my DataItem a DataRow?
Can someone help?
Ta,
Mark